@@ -1089,35 +1089,29 @@ public final class HTTPClient: Sendable {
1089
1089
}
1090
1090
}
1091
1091
1092
+ // TODO: Open up customization of keys we use?
1092
1093
/// Configuration for tracing attributes set by the HTTPClient.
1093
- public var attributeKeys : AttributeKeys
1094
+ @usableFromInline
1095
+ package var attributeKeys : AttributeKeys
1094
1096
1095
1097
public init ( ) {
1096
1098
self . _tracer = nil
1097
1099
self . attributeKeys = . init( )
1098
1100
}
1099
1101
1100
- @available ( macOS 10 . 15 , iOS 13 , tvOS 13 , watchOS 6 , * )
1101
- public init (
1102
- tracer: ( any Tracer ) ? = InstrumentationSystem . tracer,
1103
- attributeKeys: AttributeKeys = . init( )
1104
- ) {
1105
- self . _tracer = tracer
1106
- self . attributeKeys = attributeKeys
1107
- }
1108
-
1109
1102
/// Span attribute keys that the HTTPClient should set automatically.
1110
1103
/// This struct allows the configuration of the attribute names (keys) which will be used for the apropriate values.
1111
- public struct AttributeKeys : Sendable {
1112
- public var requestMethod : String = " http.request.method "
1113
- public var requestBodySize : String = " http.request.body.size "
1104
+ @usableFromInline
1105
+ package struct AttributeKeys : Sendable {
1106
+ @usableFromInline package var requestMethod : String = " http.request.method "
1107
+ @usableFromInline package var requestBodySize : String = " http.request.body.size "
1114
1108
1115
- public var responseBodySize : String = " http.response.size "
1116
- public var responseStatusCode : String = " http.status_code "
1109
+ @ usableFromInline package var responseBodySize : String = " http.response.size "
1110
+ @ usableFromInline package var responseStatusCode : String = " http.status_code "
1117
1111
1118
- public var httpFlavor : String = " http.flavor "
1112
+ @ usableFromInline package var httpFlavor : String = " http.flavor "
1119
1113
1120
- public init ( ) { }
1114
+ @ usableFromInline package init ( ) { }
1121
1115
}
1122
1116
}
1123
1117
0 commit comments