Skip to content

Commit 6ae210e

Browse files
committed
Rename recordingSpan(context:) to activeSpan(context:)
1 parent d2a4716 commit 6ae210e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Tracing/TracerProtocol.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public protocol Tracer: LegacyTracer {
6666
/// It was added retroactively with a default implementation returning `nil` and therefore isn't guaranteed to be implemented by all `Tracer`s.
6767
/// - Parameter context: The context containing information that uniquely identifies the span being obtained.
6868
/// - Returns: The span identified by the given `ServiceContext` in case it's still recording.
69-
func recordingSpan(identifiedBy context: ServiceContext) -> Span?
69+
func activeSpan(identifiedBy context: ServiceContext) -> Span?
7070
}
7171

7272
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) // for TaskLocal ServiceContext
@@ -115,12 +115,12 @@ extension Tracer {
115115
)
116116
}
117117

118-
/// Default implementation for ``recordingSpan(identifiedBy:)`` which always returns `nil`.
119-
/// This default exists in order to facilitate source-compatible introduction of the ``recordingSpan(identifiedBy:)`` protocol requirement.
118+
/// Default implementation for ``activeSpan(identifiedBy:)`` which always returns `nil`.
119+
/// This default exists in order to facilitate source-compatible introduction of the ``activeSpan(identifiedBy:)`` protocol requirement.
120120
///
121121
/// - Parameter context: The context containing information that uniquely identifies the span being obtained.
122122
/// - Returns: `nil`.
123-
public func recordingSpan(identifiedBy context: ServiceContext) -> Span? {
123+
public func activeSpan(identifiedBy context: ServiceContext) -> Span? {
124124
nil
125125
}
126126
}

0 commit comments

Comments
 (0)