@@ -321,7 +321,6 @@ public func withSpan<T>(
321321/// - operation: The operation that this span measures.
322322/// - Returns: the value returned by `operation`.
323323/// - Throws: the error the `operation` throws (if any).
324- #if compiler(>=6.0)
325324@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * ) // for TaskLocal ServiceContext
326325public func withSpan< T, Instant: TracerInstant > (
327326 _ operationName: String ,
@@ -346,11 +345,8 @@ public func withSpan<T, Instant: TracerInstant>(
346345 try await operation ( anySpan)
347346 }
348347}
349- #endif
350348
351- #if compiler(>=6.0)
352349@_disfavoredOverload @available ( * , deprecated, message: " Prefer #isolation version of this API " )
353- #endif
354350/// Start a new span and automatically end when the operation completes,
355351/// including recording the error in case the operation throws.
356352///
@@ -413,7 +409,6 @@ public func withSpan<T, Instant: TracerInstant>(
413409/// - operation: The operation that this span measures.
414410/// - Returns: the value returned by `operation`.
415411/// - Throws: the error the `operation` throws (if any).
416- #if compiler(>=6.0)
417412@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * ) // for TaskLocal ServiceContext
418413public func withSpan< T> (
419414 _ operationName: String ,
@@ -437,11 +432,8 @@ public func withSpan<T>(
437432 try await operation ( anySpan)
438433 }
439434}
440- #endif
441435
442- #if compiler(>=6.0)
443436@_disfavoredOverload @available ( * , deprecated, message: " Prefer #isolation version of this API " )
444- #endif
445437@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * ) // for TaskLocal ServiceContext
446438/// Start a new span and automatically end when the operation completes,
447439/// including recording the error in case the operation throws.
@@ -502,7 +494,6 @@ public func withSpan<T>(
502494/// - operation: The operation that this span should be measuring
503495/// - Returns: the value returned by `operation`
504496/// - Throws: the error the `operation` has thrown (if any)
505- #if compiler(>=6.0)
506497@available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
507498public func withSpan< T> (
508499 _ operationName: String ,
@@ -527,11 +518,8 @@ public func withSpan<T>(
527518 try await operation ( anySpan)
528519 }
529520}
530- #endif
531521
532- #if compiler(>=6.0)
533522@_disfavoredOverload @available ( * , deprecated, message: " Prefer #isolation version of this API " )
534- #endif
535523/// Start a new span and automatically end when the operation completes,
536524/// including recording the error in case the operation throws.
537525///
0 commit comments