Skip to content

Commit abad226

Browse files
committed
Do not overwrite client span if incoming request has "uber-trace-id" header
1 parent 8a865d5 commit abad226

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

instrument-starters/opentracing-spring-cloud-gateway-starter/src/main/java/io/opentracing/contrib/spring/cloud/gateway/TraceRequestHttpHeadersFilter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ private void addHeadersWithInput(ServerHttpRequest.Builder builder,
8686
.entrySet()) {
8787
String key = entry.getKey();
8888
List<String> value = entry.getValue();
89-
headersWithInput.put(key, value);
89+
headersWithInput.putIfAbsent(key, value);
9090
}
9191
}
9292

0 commit comments

Comments
 (0)