You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am testing micrometer baggage tag field with a simple code block in a method in a RestController. I provide the configured header in the rest request, but I can't see the request on Jaeger server UI.
If I add a line to check if the baggage field is actually in the tracer, then it is automatically propagated and I can see it in the Jaeger server UI. I do not set anything, i just make a simple get call.
@RestController@RequestMapping("/v1/sample")
publicclassSampleController {
privatefinalTracertracer;
publicSampleController(Tracertracer) {
this.tracer = tracer;
}
@GetMappingpublicSampleResponsegetSampleData() {
//tracer.getBaggage("X-TEST-HEADER");// Create a sample DTO objectSampleDtosampleDto = newSampleDto("Sample Name", "Sample Description", 100);
// Return a response with the DTOreturnnewSampleResponse("Success", sampleDto);
}
}
Edit: I am adding logs below. As you can see, it detects the header as a baggage and it says i will propagate, but it does not. (i.m.t.o.p.BaggageTextMapPropagator : Will propagate new baggage context for entries {X-TEST-HEADER=123456})
Expected behavior
Even if I didn't have the line "tracer.getBaggage("X-TEST-HEADER");", I should be able to see the header propagated to Jaeger and I should be able to see it in Jaeger Server UI.
If I comment out the tracer.getBaggage code above, I don't see the header under tags section of Jaeger Server UI.
If I have the tracer.getBaggage code in the Controller, I can see the header under tags section of Jaeger Server UI.
Additional context
I don't have any other class other than the DTO mentioned above and the MainApplication.java class (@SpringBootApplication), and this class just has static main method.
The text was updated successfully, but these errors were encountered:
Describe the bug
I am testing micrometer baggage tag field with a simple code block in a method in a RestController. I provide the configured header in the rest request, but I can't see the request on Jaeger server UI.
If I add a line to check if the baggage field is actually in the tracer, then it is automatically propagated and I can see it in the Jaeger server UI. I do not set anything, i just make a simple get call.
Environment
To Reproduce
How to reproduce the bug:
My Application.Properties Config:
============================
My build.gradle (relevant parts)
============================
SampleController.java Class:
Edit: I am adding logs below. As you can see, it detects the header as a baggage and it says i will propagate, but it does not. (i.m.t.o.p.BaggageTextMapPropagator : Will propagate new baggage context for entries {X-TEST-HEADER=123456})
2025-01-06T03:25:25.741Z DEBUG 1 --- [template-microservice] [io-10000-exec-2] [ ] t.p.B3PropagatorExtractorMultipleHeaders : Invalid TraceId in B3 header: null'. Returning INVALID span context.
2025-01-06T03:25:25.742761979Z 2025-01-06T03:25:25.742Z DEBUG 1 --- [template-microservice] [io-10000-exec-2] [ ] t.p.B3PropagatorExtractorMultipleHeaders : Invalid TraceId in B3 header: null'. Returning INVALID span context.
2025-01-06T03:25:25.747971678Z 2025-01-06T03:25:25.747Z DEBUG 1 --- [template-microservice] [io-10000-exec-2] [ ] i.m.t.o.p.BaggageTextMapPropagator : Will propagate new baggage context for entries {X-TEST-HEADER=123456}
2025-01-06T03:25:29.277241677Z 2025-01-06T03:25:29.276Z DEBUG 1 --- [template-microservice] [jaeger:4317/...] [ ] okhttp3.internal.http2.Http2 : >> CONNECTION 505249202a20485454502f322e300d0a0d0a534d0d0a0d0a
2025-01-06T03:25:29.278486332Z 2025-01-06T03:25:29.277Z DEBUG 1 --- [template-microservice] [jaeger:4317/...] [ ] okhttp3.internal.http2.Http2 : >> 0x00000000 6 SETTINGS
2025-01-06T03:25:29.279119259Z 2025-01-06T03:25:29.278Z DEBUG 1 --- [template-microservice] [jaeger:4317/...] [ ] okhttp3.internal.http2.Http2 : >> 0x00000000 4 WINDOW_UPDATE
2025-01-06T03:25:29.282437312Z
============================
Expected behavior
Even if I didn't have the line "tracer.getBaggage("X-TEST-HEADER");", I should be able to see the header propagated to Jaeger and I should be able to see it in Jaeger Server UI.
If I comment out the tracer.getBaggage code above, I don't see the header under tags section of Jaeger Server UI.
If I have the tracer.getBaggage code in the Controller, I can see the header under tags section of Jaeger Server UI.
Additional context
I don't have any other class other than the DTO mentioned above and the MainApplication.java class (@SpringBootApplication), and this class just has static main method.
The text was updated successfully, but these errors were encountered: