Using Loki log lables to link to Tempo traceids


I am looking to link my Loki logs to my Tempo trace from opentelemetry.

From my understanding the only way to do that is use the log message text and the Derived fields regex to create a detected label.

However the Logging Instrumentor (opentelemetry.instrumentation.logging) adds the fields as extra content to the log with out using the message field. Which is detected and correctly displayed by Loki, with out the need of extra configuration.


Is a way to use these already detected log labels to link the log to the corresponding trace?