@@ -117,6 +117,8 @@ public struct ValkeyConnectionConfiguration: Sendable {
117
117
public var clientName : String ?
118
118
119
119
#if DistributedTracingSupport
120
+ /// The distributed tracing configuration to use for this connection.
121
+ /// Defaults to using the globally bootstrapped tracer with OpenTelemetry semantic conventions.
120
122
public var tracing : ValkeyTracingConfiguration = . init( )
121
123
#endif
122
124
@@ -148,13 +150,19 @@ public struct ValkeyConnectionConfiguration: Sendable {
148
150
149
151
#if DistributedTracingSupport
150
152
@available ( valkeySwift 1 . 0 , * )
153
+ /// A configuration object that defines distributed tracing behavior of a Valkey client.
151
154
public struct ValkeyTracingConfiguration : Sendable {
152
-
155
+ /// The tracer to use, or `nil` to disable tracing.
156
+ /// Defaults to the globally bootstrapped tracer.
153
157
public var tracer : ( any Tracer ) ? = InstrumentationSystem . tracer
154
158
159
+ /// The attribute names used in spans created by Valkey. Defaults to OpenTelemetry semantics.
155
160
public var attributeNames : AttributeNames = . init( )
156
- public var attributeValue : AttributeValues = . init( )
157
161
162
+ /// The static attribute values used in spans created by Valkey.
163
+ public var attributeValues : AttributeValues = . init( )
164
+
165
+ /// Attribute names used in spans created by Valkey.
158
166
public struct AttributeNames : Sendable {
159
167
public var databaseOperationName : String = " db.operation.name "
160
168
public var databaseSystemName : String = " db.system.name "
@@ -164,6 +172,7 @@ public struct ValkeyTracingConfiguration: Sendable {
164
172
public var serverPort : String = " server.port "
165
173
}
166
174
175
+ /// Static attribute values used in spans created by Valkey.
167
176
public struct AttributeValues : Sendable {
168
177
public var databaseSystem : String = " valkey "
169
178
}
0 commit comments