[Tracing] Default tracer to global bootstrapped tracer (#861)

This commit is contained in:
Konrad `ktoso` Malawski
2025-10-09 17:01:05 +09:00
committed by GitHub
parent 8430dd49d4
commit c2a3a2cfb7
+5 -1
View File
@@ -1095,7 +1095,11 @@ public final class HTTPClient: Sendable {
package var attributeKeys: AttributeKeys
public init() {
self._tracer = nil
if #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) {
self._tracer = InstrumentationSystem.tracer
} else {
self._tracer = nil
}
self.attributeKeys = .init()
}