@@ -117,6 +117,8 @@ public struct ValkeyConnectionConfiguration: Sendable {
117117 public var clientName : String ?
118118
119119 #if DistributedTracingSupport
120+ /// The distributed tracing configuration to use for this connection.
121+ /// Defaults to using the globally bootstrapped tracer with OpenTelemetry semantic conventions.
120122 public var tracing : ValkeyTracingConfiguration = . init( )
121123 #endif
122124
@@ -148,13 +150,19 @@ public struct ValkeyConnectionConfiguration: Sendable {
148150
149151#if DistributedTracingSupport
150152@available ( valkeySwift 1 . 0 , * )
153+ /// A configuration object that defines distributed tracing behavior of a Valkey client.
151154public struct ValkeyTracingConfiguration : Sendable {
152-
155+ /// The tracer to use, or `nil` to disable tracing.
156+ /// Defaults to the globally bootstrapped tracer.
153157 public var tracer : ( any Tracer ) ? = InstrumentationSystem . tracer
154158
159+ /// The attribute names used in spans created by Valkey. Defaults to OpenTelemetry semantics.
155160 public var attributeNames : AttributeNames = . init( )
156- public var attributeValue : AttributeValues = . init( )
157161
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.
158166 public struct AttributeNames : Sendable {
159167 public var databaseOperationName : String = " db.operation.name "
160168 public var databaseSystemName : String = " db.system.name "
@@ -164,6 +172,7 @@ public struct ValkeyTracingConfiguration: Sendable {
164172 public var serverPort : String = " server.port "
165173 }
166174
175+ /// Static attribute values used in spans created by Valkey.
167176 public struct AttributeValues : Sendable {
168177 public var databaseSystem : String = " valkey "
169178 }
0 commit comments