Custom field propagation and log correlations

Hello :wave:

I was combing over the docs and noticed that there is an option to enable log correlation such that the trace and span ids can be added to the MDC, which is great! However, is it possible to also include custom field propagations over the wire and have that also be added to the MDC? Essentially, I'm trying to add a X-TestId field (propagated via headers) so that when filtering through the logs/tracing output, we could easily see the source of the transactions. Currently we're using Sleuth which enables this with a bit of code but would rather rely simply on APM if possible to simplify things.

Thanks! :slightly_smiling_face:

1 Like

We currently don't have a way to add labels/baggage/correlation-context which is propagated to downstream services. Once we have such an API, you could manually read the values you are interested in and add them to the MDC.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.