@@ -296,6 +296,7 @@ extension LegacyTracer {
296296    ///
297297    /// - Parameters:
298298    ///   - operationName: The name of the operation being traced. This may be a handler function, a database call, and so on.
299+     ///   - instant: the time instant at which the span started.
299300    ///   - context: The `ServiceContext` providing information on where to start the new ``Span``.
300301    ///   - kind: The ``SpanKind`` of the new ``Span``.
301302    ///   - isolation: Defaulted parameter for inheriting isolation of calling actor.
@@ -305,7 +306,6 @@ extension LegacyTracer {
305306    ///   - operation: The operation that this span measures.
306307    /// - Returns: the value returned by `operation`.
307308    /// - Throws: the error the `operation` throws (if any).
308-     #if compiler(>=6.0) 
309309    public  func  withAnySpan< T,  Instant:  TracerInstant > ( 
310310        _ operationName:  String , 
311311        at instant:  @autoclosure  ( )  ->  Instant , 
@@ -336,12 +336,9 @@ extension LegacyTracer {
336336            throw  error  // rethrow
337337        } 
338338    } 
339-     #endif 
340339
341-     #if compiler(>=6.0) 
342340    // swift-format-ignore: Spacing // fights with formatter
343341    @_disfavoredOverload   @available ( * ,  deprecated,  message:  " Prefer #isolation version of this API " )  
344-     #endif 
345342    /// Start a new span and automatically end when the operation completes,
346343    /// including recording the error in case the operation throws.
347344    ///
@@ -411,7 +408,6 @@ extension LegacyTracer {
411408    ///   - operation: The operation that this span measures.
412409    /// - Returns: the value returned by `operation`.
413410    /// - Throws: the error the `operation` throws (if any).
414-     #if compiler(>=6.0) 
415411    public  func  withAnySpan< T> ( 
416412        _ operationName:  String , 
417413        context:  @autoclosure  ( )  ->  ServiceContext  =  . current ??  . topLevel, 
@@ -441,12 +437,9 @@ extension LegacyTracer {
441437            throw  error  // rethrow
442438        } 
443439    } 
444-     #endif 
445440
446-     #if compiler(>=6.0) 
447441    // swift-format-ignore: Spacing // fights with formatter
448442    @_disfavoredOverload   @available ( * ,  deprecated,  message:  " Prefer #isolation version of this API " )  
449-     #endif 
450443    /// Start a new span and automatically end when the operation completes,
451444    /// including recording the error in case the operation throws.
452445    ///
@@ -629,7 +622,6 @@ extension Tracer {
629622    ///   - operation: The operation that this span measures.
630623    /// - Returns: the value returned by `operation`.
631624    /// - Throws: the error the `operation` throws (if any).
632-     #if compiler(>=6.0) 
633625    public  func  withAnySpan< T> ( 
634626        _ operationName:  String , 
635627        at instant:  @autoclosure  ( )  ->  some  TracerInstant  =  DefaultTracerClock . now, 
@@ -653,12 +645,9 @@ extension Tracer {
653645            try   await  operation ( span) 
654646        } 
655647    } 
656-     #endif 
657648
658-     #if compiler(>=6.0) 
659649    // swift-format-ignore: Spacing // fights with formatter
660650    @_disfavoredOverload   @available ( * ,  deprecated,  message:  " Prefer #isolation version of this API " )  
661-     #endif 
662651    /// Start a new span and automatically end when the operation completes,
663652    /// including recording the error in case the operation throws.
664653    ///
0 commit comments