@@ -62,7 +62,6 @@ internal struct DDSpan: Encodable {
6262
6363 // MARK: - Meta
6464
65- let tracerVersion : String
6665 let applicationVersion : String
6766
6867 /// Custom tags, received from user
@@ -107,8 +106,7 @@ internal struct DDSpan: Encodable {
107106 let spanType = spanData. attributes [ " type " ] ?? spanData. attributes [ " db.type " ]
108107 self . type = spanType? . description ?? spanData. kind. rawValue
109108
110- self . tracerVersion = " 1.0 " // spanData.tracerVersion
111- self . applicationVersion = " 0.0.1 " // spanData.applicationVersion
109+ self . applicationVersion = configuration. version
112110 self . tags = spanData. attributes. filter {
113111 !DDSpan. errorTagKeys. contains ( $0. key)
114112 } . mapValues { $0 }
@@ -144,7 +142,6 @@ internal struct SpanEncoder {
144142
145143 case source = " meta._dd.source "
146144 case applicationVersion = " meta.version "
147- case tracerVersion = " meta.tracer.version "
148145 }
149146
150147 /// Coding keys for dynamic `Span` attributes specified by user.
@@ -201,7 +198,6 @@ internal struct SpanEncoder {
201198 private func encodeDefaultMeta( _ span: DDSpan , to container: inout KeyedEncodingContainer < StaticCodingKeys > ) throws {
202199 // NOTE: RUMM-299 only string values are supported for `meta.*` attributes
203200 try container. encode ( Constants . ddsource, forKey: . source)
204- try container. encode ( span. tracerVersion, forKey: . tracerVersion)
205201 try container. encode ( span. applicationVersion, forKey: . applicationVersion)
206202 }
207203
0 commit comments