Mapped Diagnostic Context (MDC)

16 views
Skip to first unread message

Mohan Radhakrishnan

unread,
Jun 2, 2020, 8:05:08 AM6/2/20
to zipkin-user
Hi,
        Zipkin and other intrumentation libraries seems to the Mapped Diagnostic Context (MDC) for storing information that is specific to a thread. Aren't they
ThreadLocals ? If so then we have problems with pools that don't clean the state before reusing threads.

Am I missing something ? I am investigating this to store context information for threads which seems to be a bad idea.

Thanks,
Mohan

Adrian Cole

unread,
Jun 4, 2020, 5:57:24 AM6/4/20
to zipki...@googlegroups.com
Hi, Mohan.

Our instrumentation has some fairly sophisticated means to ensure MDC
is cleared after a span is made "current". this is implemented with
our correlation component described here
https://github.com/openzipkin/brave/tree/master/brave#correlation
> --
>
> ---
> You received this message because you are subscribed to the Google Groups "zipkin-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to zipkin-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/zipkin-user/227412de-398d-4f14-9565-ecde8db4270d%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages