We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16a4c37 commit f2355d6Copy full SHA for f2355d6
Sources/W3CTraceContext/TraceContext.swift
@@ -20,7 +20,12 @@ public struct TraceContext: Equatable {
20
/// The `TraceState` containing potentially vendor-specific trace information.
21
public let state: TraceState
22
23
- init(parent: TraceParent, state: TraceState) {
+ /// 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) {
29
self.parent = parent
30
self.state = state
31
}
0 commit comments