@@ -18,7 +18,7 @@ import Dispatch
18
18
19
19
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * ) // for TaskLocal Baggage
20
20
public protocol LegacyTracerProtocol : InstrumentProtocol {
21
- /// Start a new span returning an existential ``SpanProtocol `` reference.
21
+ /// Start a new span returning an existential ``Span `` reference.
22
22
///
23
23
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
24
24
/// is recommended instead.
@@ -55,7 +55,7 @@ public protocol LegacyTracerProtocol: InstrumentProtocol {
55
55
function: String ,
56
56
file fileID: String ,
57
57
line: UInt
58
- ) -> any SpanProtocol
58
+ ) -> any Span
59
59
60
60
/// Export all ended spans to the configured backend that have not yet been exported.
61
61
///
@@ -71,7 +71,7 @@ public protocol LegacyTracerProtocol: InstrumentProtocol {
71
71
72
72
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * ) // for TaskLocal Baggage
73
73
extension LegacyTracerProtocol {
74
- /// Start a new span returning an existential ``SpanProtocol `` reference.
74
+ /// Start a new span returning an existential ``Span `` reference.
75
75
///
76
76
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
77
77
/// is recommended instead.
@@ -108,7 +108,7 @@ extension LegacyTracerProtocol {
108
108
function: String = #function,
109
109
file fileID: String = #fileID,
110
110
line: UInt = #line
111
- ) -> any SpanProtocol {
111
+ ) -> any Span {
112
112
self . startAnySpan (
113
113
operationName,
114
114
baggage: baggage ( ) ,
@@ -120,7 +120,7 @@ extension LegacyTracerProtocol {
120
120
)
121
121
}
122
122
123
- /// Start a new ``SpanProtocol `` and automatically end when the `operation` completes,
123
+ /// Start a new ``Span `` and automatically end when the `operation` completes,
124
124
/// including recording the `error` in case the operation throws.
125
125
///
126
126
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
@@ -161,7 +161,7 @@ extension LegacyTracerProtocol {
161
161
function: String = #function,
162
162
file fileID: String = #fileID,
163
163
line: UInt = #line,
164
- _ operation: ( any SpanProtocol ) throws -> T
164
+ _ operation: ( any Span ) throws -> T
165
165
) rethrows -> T {
166
166
let span = self . startAnySpan ( operationName, baggage: baggage ( ) , ofKind: kind, at: time, function: function, file: fileID, line: line)
167
167
defer { span. end ( ) }
@@ -175,7 +175,7 @@ extension LegacyTracerProtocol {
175
175
}
176
176
}
177
177
178
- /// Start a new ``SpanProtocol `` and automatically end when the `operation` completes,
178
+ /// Start a new ``Span `` and automatically end when the `operation` completes,
179
179
/// including recording the `error` in case the operation throws.
180
180
///
181
181
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
@@ -216,7 +216,7 @@ extension LegacyTracerProtocol {
216
216
function: String = #function,
217
217
file fileID: String = #fileID,
218
218
line: UInt = #line,
219
- _ operation: ( any SpanProtocol ) async throws -> T
219
+ _ operation: ( any Span ) async throws -> T
220
220
) async rethrows -> T {
221
221
let span = self . startAnySpan ( operationName, baggage: baggage ( ) , ofKind: kind, at: time, function: function, file: fileID, line: line)
222
222
defer { span. end ( ) }
@@ -236,7 +236,7 @@ extension LegacyTracerProtocol {
236
236
237
237
@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
238
238
extension TracerProtocol {
239
- /// Start a new span returning an existential ``SpanProtocol `` reference.
239
+ /// Start a new span returning an existential ``Span `` reference.
240
240
///
241
241
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
242
242
/// is recommended instead.
@@ -273,7 +273,7 @@ extension TracerProtocol {
273
273
function: String = #function,
274
274
file fileID: String = #fileID,
275
275
line: UInt = #line
276
- ) -> any SpanProtocol {
276
+ ) -> any Span {
277
277
self . startSpan (
278
278
operationName,
279
279
baggage: baggage ( ) ,
@@ -285,7 +285,7 @@ extension TracerProtocol {
285
285
)
286
286
}
287
287
288
- /// Start a new ``SpanProtocol `` and automatically end when the `operation` completes,
288
+ /// Start a new ``Span `` and automatically end when the `operation` completes,
289
289
/// including recording the `error` in case the operation throws.
290
290
///
291
291
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
@@ -326,7 +326,7 @@ extension TracerProtocol {
326
326
function: String = #function,
327
327
file fileID: String = #fileID,
328
328
line: UInt = #line,
329
- _ operation: ( any SpanProtocol ) throws -> T
329
+ _ operation: ( any Span ) throws -> T
330
330
) rethrows -> T {
331
331
try self . withSpan (
332
332
operationName,
@@ -341,7 +341,7 @@ extension TracerProtocol {
341
341
}
342
342
}
343
343
344
- /// Start a new ``SpanProtocol `` and automatically end when the `operation` completes,
344
+ /// Start a new ``Span `` and automatically end when the `operation` completes,
345
345
/// including recording the `error` in case the operation throws.
346
346
///
347
347
/// This API will be deprecated as soon as Swift 5.9 is released, and the Swift 5.7 requiring `TracerProtocol`
@@ -384,7 +384,7 @@ extension TracerProtocol {
384
384
function: String = #function,
385
385
file fileID: String = #fileID,
386
386
line: UInt = #line,
387
- _ operation: ( any SpanProtocol ) async throws -> T
387
+ _ operation: ( any Span ) async throws -> T
388
388
) async rethrows -> T {
389
389
try await self . withSpan (
390
390
operationName,
@@ -408,7 +408,7 @@ extension TracerProtocol {
408
408
function: String = #function,
409
409
file fileID: String = #fileID,
410
410
line: UInt = #line,
411
- _ operation: ( any SpanProtocol ) async throws -> T
411
+ _ operation: ( any Span ) async throws -> T
412
412
) async rethrows -> T {
413
413
try await self . withSpan (
414
414
operationName,
0 commit comments