Skip to content

Commit 571cb8d

Browse files
committed
Avoid clearing span context tags upon export
Profiler may need the tags to determine span resource name for endpoint aggregation: profiler keeps a reference on web span that was active when each profiling sample is taken. Then during profile export, span tags are used to determine endpoint. Endpoint cannot be determined right away because sometimes tags necessary to determine endpoint are only set just before span is finished.
1 parent 98eb2e0 commit 571cb8d

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

packages/dd-trace/src/span_processor.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,6 @@ class SpanProcessor {
138138
}
139139
}
140140

141-
for (const span of trace.finished) {
142-
span.context()._tags = {}
143-
}
144-
145141
trace.started = active
146142
trace.finished = []
147143
}

0 commit comments

Comments
 (0)