We are using Loki + Tempo combo in .NET solution via OTEL collector. Works great separately. Logging is done in JSON format. TraceID and SpanID are set as attributes on log records.
Fragment from OTEL config:
Oh right, I do have tags commented out.
Added it back but still seems like there is some misconfiguration.
Hardly can find any real-life configuration online.
Looks like you’ve got tags configured correctly now. The config is a bit more confusing when viewing it as code vs in the UI. Tags and mappedTags are mutually exclusive properties. If mapTagNamesEnabled is true, the query will be built based off of the mappedTags.
The config looks correct, you’ll just need to adjust the tag values based on what makes sense for your span attributes and log labels.
@connorlindsey - this is a little off topic, but can you point me at where the yaml configuration is documented? I have been totally unable to find documentation anywhere for this, and without finding this question it would have been pretty challenging to figure out what the appropriate config was.