@@ -17,6 +17,9 @@ import PackageDescription
17
17
18
18
let strictConcurrencyDevelopment = false
19
19
20
+ // Package Traits
21
+ let TracingSupport = " TracingSupport "
22
+
20
23
let strictConcurrencySettings : [ SwiftSetting ] = {
21
24
var initialSettings : [ SwiftSetting ] = [ ]
22
25
initialSettings. append ( contentsOf: [
@@ -42,8 +45,8 @@ let package = Package(
42
45
. library( name: " AsyncHTTPClient " , targets: [ " AsyncHTTPClient " ] )
43
46
] ,
44
47
traits: [
45
- . trait( name: " TracingSupport " ) ,
46
- . default( enabledTraits: [ " TracingSupport " ] ) ,
48
+ . trait( name: TracingSupport) ,
49
+ . default( enabledTraits: [ TracingSupport] ) ,
47
50
] ,
48
51
dependencies: [
49
52
. package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.81.0 " ) ,
@@ -82,7 +85,7 @@ let package = Package(
82
85
. product( name: " Atomics " , package : " swift-atomics " ) ,
83
86
. product( name: " Algorithms " , package : " swift-algorithms " ) ,
84
87
// Observability support
85
- . product( name: " Tracing " , package : " swift-distributed-tracing " , condition: . when( traits: [ " TracingSupport " ] ) ) ,
88
+ . product( name: " Tracing " , package : " swift-distributed-tracing " , condition: . when( traits: [ TracingSupport] ) ) ,
86
89
] ,
87
90
swiftSettings: strictConcurrencySettings
88
91
) ,
0 commit comments