Skip to content

Commit f2355d6

Browse files
committed
Make TraceContext value init public
1 parent 16a4c37 commit f2355d6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/W3CTraceContext/TraceContext.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ public struct TraceContext: Equatable {
2020
/// The `TraceState` containing potentially vendor-specific trace information.
2121
public let state: TraceState
2222

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) {
2429
self.parent = parent
2530
self.state = state
2631
}

0 commit comments

Comments
 (0)