You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/Instrumentation/Tracing/TracingInstrument.swift
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ public protocol TracingInstrument: Instrument {
22
22
/// - operationName: The name of the operation being traced. This may be a handler function, database call, ...
23
23
/// - context: The `BaggageContext` within to start the new `Span`.
24
24
/// - kind: The `SpanKind` of the new `Span`.
25
-
/// - timestamp: The `DispatchTime` at which to start the new `Span`.
25
+
/// - timestamp: The `DispatchTime` at which to start the new `Span`. Passing `nil` leaves the timestamp capture to the underlying tracing instrument.
26
26
func startSpan(
27
27
named operationName:String,
28
28
context:BaggageContext,
@@ -38,11 +38,10 @@ extension TracingInstrument {
38
38
/// - operationName: The name of the operation being traced. This may be a handler function, database call, ...
39
39
/// - context: The `BaggageContext` within to start the new `Span`.
40
40
/// - kind: The `SpanKind` of the `Span` to be created. Defaults to `.internal`.
41
-
/// - timestamp: The `DispatchTime` at which to start the new `Span`. Defaults to `nil`.
41
+
/// - timestamp: The `DispatchTime` at which to start the new `Span`. Defaults to `nil`, meaning the timestamp capture is left up to the underlying tracing instrument.
0 commit comments