Skip to content

Commit d2a4716

Browse files
committed
Remove currentSpan() syntax sugar
1 parent daf4e6b commit d2a4716

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Sources/Tracing/TracerProtocol.swift

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,6 @@ extension Tracer {
123123
public func recordingSpan(identifiedBy context: ServiceContext) -> Span? {
124124
nil
125125
}
126-
127-
/// Attempt to retrieve the current recording span based on the task-local `ServiceContext`.
128-
///
129-
/// - Note: This method should be considered best-effort as it might not (yet) be supported by the application author's `Tracer` of choice.
130-
/// - Returns: A span if one can be obtained via the task-local `ServiceContext`.
131-
public func currentSpan() -> Span? {
132-
guard let context = ServiceContext.current else { return nil }
133-
return recordingSpan(identifiedBy: context)
134-
}
135126
}
136127

137128
// ==== ----------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)