ApplicationInsights Java Agent 3.1.1 is adding another traceparent hedaer into my requests.
Log sample:
{"timestamp":"2021-09-25T16:57:28.540Z","level":"TRACE","thread":"reactor-http-epoll-4","logger":"org.zalando.logbook.Logbook","message":"server request [f7c14e1cbb6d074c] GET ... with body '' headers '{Accept=[/], Accept-Encoding=[gzip, deflate, br], Authorization=[Basic dXNlcjp1c2VyLXBhc3N3b3Jk], Connection=[keep-alive], Host=[localhost:8080], Postman-Token=[16d47001-70e7-4f03-a5c5-55ecc88f55b4], traceparent=[00-00000000000000000000000000000001-9f485572825e8a02-00], User-Agent=[PostmanRuntime/7.26.8], X-Test=[true]}'","context":"default"}
{"timestamp":"2021-09-25T16:57:30.459Z","level":"TRACE","thread":"reactor-http-epoll-1","logger":"org.zalando.logbook.Logbook","message":"client request [f73ff4b0480d517b] ... headers '{accept=[/], accept-encoding=[gzip], Authorization=[...], content-length=[808], Content-Type=[text/xml], host=[...], Request-Id=[|7382b912b98672434beceb151848b70f.2c488bdb9f64a031.], traceparent=[00-7382b912b98672434beceb151848b70f-2c488bdb9f64a031-01, 00-00000000000000000000000000000001-e0714505f7f757f3-00], user-agent=[ReactorNetty/1.0.11], X-B3-ParentSpanId=[3f57f815b9a5533c], X-B3-Sampled=[0], X-B3-SpanId=[e0714505f7f757f3], X-B3-TraceId=[0000000000000001], X-Test=[true]}'","context":"default"}
My app is writen in Kotlin with spring webflux and kotlin logger with logbook for logging. I am using spring sleuth to propagate trace headers (I need w3c and b3 formats on my requests).
Everything works just fine before I add agent to my app, when I do that, there is second traceparent header as on the example above.
Versions:
Java 15
Kotlin: 1.5.31
spring-boot-starter-parent: 2.5.5
spring-cloud-dependencies: 2020.0.4
Is there any way to temporary force agent to stop propagation headers on it's own? I just need this ganet to export data to ApplicationInsights not to change my headers.
ApplicationInsights Java Agent 3.1.1 is adding another traceparent hedaer into my requests.
Log sample:
{"timestamp":"2021-09-25T16:57:28.540Z","level":"TRACE","thread":"reactor-http-epoll-4","logger":"org.zalando.logbook.Logbook","message":"server request [f7c14e1cbb6d074c] GET ... with body '' headers '{Accept=[/], Accept-Encoding=[gzip, deflate, br], Authorization=[Basic dXNlcjp1c2VyLXBhc3N3b3Jk], Connection=[keep-alive], Host=[localhost:8080], Postman-Token=[16d47001-70e7-4f03-a5c5-55ecc88f55b4], traceparent=[00-00000000000000000000000000000001-9f485572825e8a02-00], User-Agent=[PostmanRuntime/7.26.8], X-Test=[true]}'","context":"default"}
{"timestamp":"2021-09-25T16:57:30.459Z","level":"TRACE","thread":"reactor-http-epoll-1","logger":"org.zalando.logbook.Logbook","message":"client request [f73ff4b0480d517b] ... headers '{accept=[/], accept-encoding=[gzip], Authorization=[...], content-length=[808], Content-Type=[text/xml], host=[...], Request-Id=[|7382b912b98672434beceb151848b70f.2c488bdb9f64a031.], traceparent=[00-7382b912b98672434beceb151848b70f-2c488bdb9f64a031-01, 00-00000000000000000000000000000001-e0714505f7f757f3-00], user-agent=[ReactorNetty/1.0.11], X-B3-ParentSpanId=[3f57f815b9a5533c], X-B3-Sampled=[0], X-B3-SpanId=[e0714505f7f757f3], X-B3-TraceId=[0000000000000001], X-Test=[true]}'","context":"default"}
My app is writen in Kotlin with spring webflux and kotlin logger with logbook for logging. I am using spring sleuth to propagate trace headers (I need w3c and b3 formats on my requests).
Everything works just fine before I add agent to my app, when I do that, there is second traceparent header as on the example above.
Versions:
Java 15
Kotlin: 1.5.31
spring-boot-starter-parent: 2.5.5
spring-cloud-dependencies: 2020.0.4
Is there any way to temporary force agent to stop propagation headers on it's own? I just need this ganet to export data to ApplicationInsights not to change my headers.