Skip to content

Commit cc8d409

Browse files
author
Ignacio Bonafonte
authored
Datadog Exporter - Don't force the name in the encoder when a type is set (#246)
1 parent 5da8472 commit cc8d409

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Exporters/DatadogExporter/Spans/SpanEncoder.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ internal struct DDSpan: Encodable {
7070
self.spanID = spanData.spanId
7171
self.parentID = spanData.parentSpanId
7272

73-
if let testType = spanData.attributes["test.type"] {
74-
self.name = "XCTest.\(testType.description)"
73+
if let type = spanData.attributes["type"] {
74+
self.name = spanData.name
7575
} else {
7676
self.name = spanData.name + "." + spanData.kind.rawValue
7777
}

0 commit comments

Comments
 (0)