Hi Ivan,
That's correct.
We currently use a Play request filter to add a unique requestId to the MDC.
The application logs via slf4j, with logback configured to include the MDC.
Our approach for propagating the MDC across thread boundaries is based on the first solution presented in this blog post, though it is fragile, and relies on a deprecated api (ExecutionContext.prepare)
https://yanns.github.io/blog/2014/05/04/slf4j-mapped-diagnostic-context-mdc-with-play-framework/
The solution has evolved a bit, and the actual details are represented in this gist (You can ignore AccessLogFilter)
https://gist.github.com/jsw/ef5be06d628a3efe3185a7c4bbe96ef5
Ideally, application code wouldn't need to interact with Kamon at all, and everything can be setup via filter, logging config, build dependencies, and jre runtime parameters to include the java agent.
I would love to see an example that demonstrates the capability.
I would also be interested if you could also share what the performance cost of using Kamon is. I'm not sure how much overhead there is using a java agent in general. At this point, I'm just interested in MDC propagation.
thanks!
jeff
> To unsubscribe from this group and stop receiving emails from it, send an email to
kamon-user+...@googlegroups.com.