Skip to content

Commit ca70c7d

Browse files
Added comment about supporting old protocols.
1 parent 4158f9c commit ca70c7d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

dd-trace-core/src/main/java/datadog/trace/core/DDSpanContext.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,12 +1107,15 @@ void processTagsAndBaggage(
11071107
// Tags
11081108
TagsPostProcessorFactory.lazyProcessor().processTags(unsafeTags, this, restrictedSpan);
11091109

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.
11101112
if (spanLinksAsTag) {
11111113
String linksTag = DDSpanLink.toTag(restrictedSpan.getLinks());
11121114
if (linksTag != null) {
11131115
unsafeTags.put(SPAN_LINKS, linksTag);
11141116
}
11151117
}
1118+
11161119
// Baggage
11171120
Map<String, String> baggageItemsWithPropagationTags;
11181121
if (injectBaggageAsTags) {

0 commit comments

Comments
 (0)