Custom attributes in MDC are getting lost
See original GitHub issueboot.zip Hi i am facing an issue where in custom attributes in MDC are getting lost when using config spring.sleuth.sampler.probability=1.0 Application log:-
2019-02-25 22:33:46.360 INFO [boot-1,aa5519088fb5bc53,aa5519088fb5bc53,true,10.20.30.40] 22508 --- [nio-2040-exec-1] c.s.study.controller.SampleControllerA : SampleControllerA hello starts
2019-02-25 22:33:46.393 INFO [boot-1,aa5519088fb5bc53,bf4da017c8a86e69,true,10.20.30.40] 22508 --- [nio-2040-exec-2] c.s.study.controller.SampleControllerB : SampleControllerB hi starts and ends
2019-02-25 22:33:46.422 INFO [boot-1,aa5519088fb5bc53,aa5519088fb5bc53,true,] 22508 --- [nio-2040-exec-1] c.s.study.controller.SampleControllerA : SampleControllerA hello ends
After making a rest call trueclientip attribute in MDC is getting lost
Sample application code is attached
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (2 by maintainers)
Top Results From Across the Web
Preserve custom MDC attributes during exception-handling in ...
I want the MDC to be cleared after a response has been sent by the thread, as the last action. The MDC should...
Read more >sap mdg consolidation key attribute structure not generated
In my custom table, I have only PARTNER as a key field in my Ztable which is already linked to BP table by...
Read more >Chapter 8: Mapped Diagnostic Context - Logback - QOS.ch
The MDC manages contextual information on a per thread basis. Typically, while starting to service a new client request, the developer will insert...
Read more >Logging - Documentation - Akka
MDC allows for adding additional context dependent attributes to log entries. Out of the box, Akka will place the path of the actor...
Read more >Collect custom attributes - New Relic Documentation
By adding custom attributes to your data, you can do more in-depth and customized analysis of your business. For example, for New Relic...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@marcingrzejszczak this no longer reproduceable with
spring-cloud-sleuth:3.0.1
. Feel free to close.https://github.com/mpkorstanje/sleuth-custom-mdc-attributes-removed
Not a clue sorry.