Skip to content

Custom attributes in MDC are getting lost #1220

@narenderbisht

Description

@narenderbisht

boot.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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions