Skip to content

Commit 076071c

Browse files
committed
attempt an implementation
1 parent 14a09a5 commit 076071c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dd-java-agent/agent-bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/HttpServerDecorator.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,12 @@ public ResponseHeaderTagClassifier(AgentSpan span, Map<String, String> headerTag
626626
public boolean accept(String key, String value) {
627627
String mappedKey = headerTags.get(key.toLowerCase(Locale.ROOT));
628628
if (mappedKey != null) {
629-
span.setTag(mappedKey, value);
629+
Object existing_val = span.getTag(mappedKey);
630+
if (existing_val == null) {
631+
span.setTag(mappedKey, value);
632+
} else {
633+
span.setTag(mappedKey, existing_val.toString() + value);
634+
}
630635
}
631636
return true;
632637
}

0 commit comments

Comments
 (0)