File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ the [W3C Trace Context standard (Level 1)](https://www.w3.org/TR/2020/REC-trace-
11
11
Add the following package dependency to your ` Package.swift ` file:
12
12
13
13
``` swift
14
- .package (url : " https://github.com/slashmo/swift-w3c-trace-context" , from : " 0.2 .0" )
14
+ .package (url : " https://github.com/slashmo/swift-w3c-trace-context" , from : " 0.3 .0" )
15
15
```
16
16
17
17
Then, add the ` W3CTraceContext ` library as a product dependency to each target you want to use it in:
Original file line number Diff line number Diff line change @@ -20,7 +20,12 @@ public struct TraceContext: Equatable {
20
20
/// The `TraceState` containing potentially vendor-specific trace information.
21
21
public let state : TraceState
22
22
23
- init ( parent: TraceParent , state: TraceState ) {
23
+ /// Create a `TraceContext` from the given parent and state.
24
+ ///
25
+ /// - Parameters:
26
+ /// - parent: The `TraceParent` stored in this context.
27
+ /// - state: The `TraceState` stored in this context.
28
+ public init ( parent: TraceParent , state: TraceState ) {
24
29
self . parent = parent
25
30
self . state = state
26
31
}
You can’t perform that action at this time.
0 commit comments