We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4158f9c commit ca70c7dCopy full SHA for ca70c7d
1 file changed
dd-trace-core/src/main/java/datadog/trace/core/DDSpanContext.java
@@ -1107,12 +1107,15 @@ void processTagsAndBaggage(
1107
// Tags
1108
TagsPostProcessorFactory.lazyProcessor().processTags(unsafeTags, this, restrictedSpan);
1109
1110
+ // Convert span links to tag in order to support old protocols `v0.4` and `v0.5`.
1111
+ // Eventually old protocols will be decommissioned and this code will be removed.
1112
if (spanLinksAsTag) {
1113
String linksTag = DDSpanLink.toTag(restrictedSpan.getLinks());
1114
if (linksTag != null) {
1115
unsafeTags.put(SPAN_LINKS, linksTag);
1116
}
1117
1118
+
1119
// Baggage
1120
Map<String, String> baggageItemsWithPropagationTags;
1121
if (injectBaggageAsTags) {
0 commit comments