@@ -81,7 +81,7 @@ public final class HTTPClient: Sendable {
81
81
public var tracer : ( any Tracer ) ? {
82
82
configuration. tracing. tracer
83
83
}
84
- #endif // TracingSupport
84
+ #endif // TracingSupport
85
85
86
86
public static let loggingDisabled = Logger ( label: " AHC-do-not-log " , factory: { _ in SwiftLogNoOpLogHandler ( ) } )
87
87
@@ -684,7 +684,7 @@ public final class HTTPClient: Sendable {
684
684
deadline: NIODeadline ? = nil ,
685
685
logger: Logger ?
686
686
) -> Task < Delegate . Response > {
687
- return self . _execute (
687
+ self . _execute (
688
688
request: request,
689
689
delegate: delegate,
690
690
eventLoop: eventLoopPreference,
@@ -718,7 +718,7 @@ public final class HTTPClient: Sendable {
718
718
requestID: globalRequestID. wrappingIncrementThenLoad ( ordering: . relaxed)
719
719
)
720
720
721
- // #if TracingSupport
721
+ // #if TracingSupport
722
722
// let span: (any Span)? // we may be still executing the same span, e.g. under redirection etc.
723
723
// if let activeSpan {
724
724
// span = activeSpan
@@ -732,7 +732,7 @@ public final class HTTPClient: Sendable {
732
732
// span = nil
733
733
// }
734
734
// #endif
735
-
735
+
736
736
let taskEL : EventLoop
737
737
switch eventLoopPreference. preference {
738
738
case . indifferent:
@@ -1086,19 +1086,19 @@ public final class HTTPClient: Sendable {
1086
1086
1087
1087
#if TracingSupport
1088
1088
public struct TracingConfiguration : Sendable {
1089
-
1090
- @usableFromInline
1091
- var _tracer : Optional < any Sendable > // erasure trick so we don't have to make Configuration @available
1092
1089
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
+ ///
1095
1095
/// This is selected at configuration creation time, and if no tracer is passed explicitly,
1096
1096
/// (including `nil` in order to disable traces), the default global bootstrapped tracer will
1097
1097
/// be stored in this property, and used for all subsequent requests made by this client.
1098
1098
@inlinable
1099
1099
@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 {
1102
1102
guard let _tracer else {
1103
1103
return nil
1104
1104
}
@@ -1121,13 +1121,13 @@ public final class HTTPClient: Sendable {
1121
1121
1122
1122
/// Span attribute keys that the HTTPClient should set automatically.
1123
1123
/// 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 {
1125
1125
public var requestMethod : String = " http.request.method "
1126
1126
public var requestBodySize : String = " http.request.body.size "
1127
1127
1128
1128
public var responseBodySize : String = " http.response.size "
1129
1129
public var responseStatusCode : String = " http.status_code "
1130
-
1130
+
1131
1131
public var httpFlavor : String = " http.flavor "
1132
1132
1133
1133
public init ( ) { }
0 commit comments