Skip to content

Commit 552286b

Browse files
committed
remove duplicated func
1 parent 07c6c57 commit 552286b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Sources/AsyncHTTPClient/AsyncAwait/HTTPClient+execute.swift

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,25 +46,6 @@ extension HTTPClient {
4646
)
4747
}
4848
}
49-
50-
@inlinable
51-
func withRequestSpan<ReturnType>(
52-
_ request: HTTPClientRequest,
53-
_ body: () async throws -> ReturnType
54-
) async rethrows -> ReturnType {
55-
#if TracingSupport
56-
if let tracer = self.tracer {
57-
return try await tracer.withSpan("\(request.method)") { span in
58-
let attr = self.configuration.tracing.attributeKeys
59-
span.attributes[attr.requestMethod] = request.method.rawValue
60-
// Set more attributes on the span
61-
return try await body()
62-
}
63-
}
64-
#endif
65-
66-
return try await body()
67-
}
6849
}
6950

7051
// MARK: Connivence methods

0 commit comments

Comments
 (0)