Skip to content

Commit

Permalink
Regression tests
Browse files Browse the repository at this point in the history
  • Loading branch information
David Young committed Dec 4, 2023
1 parent 1ef33cd commit 3e5381d
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Package@swift-5.6.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,13 @@ let package = Package(
.package(url: "https://github.com/ashleymills/Reachability.swift", exact: "5.1.0"),
],
targets: [
.systemLibrary(
name: "Clibpl",
path: "./Sources/Clibpl"
),
.target(
name: "TaskSupport",
dependencies: []
dependencies: ["Clibpl"]
),
.target(name: "OpenTelemetryApi", dependencies: ["TaskSupport"]),
.target(name: "OpenTelemetrySdk",
Expand Down
6 changes: 5 additions & 1 deletion Package@swift-5.9.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,13 @@ let package = Package(
.package(url: "https://github.com/ashleymills/Reachability.swift", from: "5.1.0"),
],
targets: [
.systemLibrary(
name: "Clibpl",
path: "./Sources/Clibpl"
),
.target(
name: "TaskSupport",
dependencies: []
dependencies: ["Clibpl"]
),
.target(name: "OpenTelemetryApi", dependencies: ["TaskSupport"]),
.target(name: "OpenTelemetrySdk",
Expand Down
6 changes: 6 additions & 0 deletions Sources/Clibpl/bridge.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

/*
* Top-level bridge header file for libpl.c.
*/

#include <plogic/libpl.h>
6 changes: 6 additions & 0 deletions Sources/Clibpl/module.modulemap
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

module Clibpl {
header "bridge.h"
link "pl"
export *
}
2 changes: 1 addition & 1 deletion Sources/OpenTelemetryApi/OpenTelemetry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public struct OpenTelemetry {
baggageManager = DefaultBaggageManager.instance

#if os(Linux)
contextProvider = OpenTelemetryContextProvider(contextManager: NoOpActivityContextManager.instance)
contextProvider = OpenTelemetryContextProvider(contextManager: LinuxActivityContextManager.instance)
#else
contextProvider = OpenTelemetryContextProvider(contextManager: ActivityContextManager.instance)
#endif
Expand Down

0 comments on commit 3e5381d

Please sign in to comment.