@@ -81,7 +81,7 @@ public final class HTTPClient: Sendable {
8181 public var tracer : ( any Tracer ) ? {
8282 configuration. tracing. tracer
8383 }
84- #endif // TracingSupport
84+ #endif // TracingSupport
8585
8686 public static let loggingDisabled = Logger ( label: " AHC-do-not-log " , factory: { _ in SwiftLogNoOpLogHandler ( ) } )
8787
@@ -684,7 +684,7 @@ public final class HTTPClient: Sendable {
684684 deadline: NIODeadline ? = nil ,
685685 logger: Logger ?
686686 ) -> Task < Delegate . Response > {
687- return self . _execute (
687+ self . _execute (
688688 request: request,
689689 delegate: delegate,
690690 eventLoop: eventLoopPreference,
@@ -718,7 +718,7 @@ public final class HTTPClient: Sendable {
718718 requestID: globalRequestID. wrappingIncrementThenLoad ( ordering: . relaxed)
719719 )
720720
721- // #if TracingSupport
721+ // #if TracingSupport
722722 // let span: (any Span)? // we may be still executing the same span, e.g. under redirection etc.
723723 // if let activeSpan {
724724 // span = activeSpan
@@ -732,7 +732,7 @@ public final class HTTPClient: Sendable {
732732 // span = nil
733733 // }
734734 // #endif
735-
735+
736736 let taskEL : EventLoop
737737 switch eventLoopPreference. preference {
738738 case . indifferent:
@@ -1086,19 +1086,19 @@ public final class HTTPClient: Sendable {
10861086
10871087 #if TracingSupport
10881088 public struct TracingConfiguration : Sendable {
1089-
1090- @usableFromInline
1091- var _tracer : Optional < any Sendable > // erasure trick so we don't have to make Configuration @available
10921089
1093- /// Tracer that should be used by the HTTPClient.
1094- ///
1090+ @usableFromInline
1091+ var _tracer : Optional < any Sendable > // erasure trick so we don't have to make Configuration @available
1092+
1093+ /// Tracer that should be used by the HTTPClient.
1094+ ///
10951095 /// This is selected at configuration creation time, and if no tracer is passed explicitly,
10961096 /// (including `nil` in order to disable traces), the default global bootstrapped tracer will
10971097 /// be stored in this property, and used for all subsequent requests made by this client.
10981098 @inlinable
10991099 @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1100- public var tracer : ( any Tracer ) ? {
1101- get {
1100+ public var tracer : ( any Tracer ) ? {
1101+ get {
11021102 guard let _tracer else {
11031103 return nil
11041104 }
@@ -1121,13 +1121,13 @@ public final class HTTPClient: Sendable {
11211121
11221122 /// Span attribute keys that the HTTPClient should set automatically.
11231123 /// This struct allows the configuration of the attribute names (keys) which will be used for the apropriate values.
1124- public struct AttributeKeys : Sendable {
1124+ public struct AttributeKeys : Sendable {
11251125 public var requestMethod : String = " http.request.method "
11261126 public var requestBodySize : String = " http.request.body.size "
11271127
11281128 public var responseBodySize : String = " http.response.size "
11291129 public var responseStatusCode : String = " http.status_code "
1130-
1130+
11311131 public var httpFlavor : String = " http.flavor "
11321132
11331133 public init ( ) { }
0 commit comments