Hello,
I’m trying to correlate traces to logs - and I’m having an issue with the query produced when I’m leaving it to default (eg: I’m not specifying my own custom query) but I enable filter by trace/span:
{service_name="service1"} | label_format log_line_contains_trace_id=`{{ contains "1be89a7798d512741a17463376c65932" __line__ }}` | log_line_contains_trace_id="true" OR trace_id="1be89a7798d512741a17463376c65932" | label_format log_line_contains_span_id=`{{ contains "8fd2201fff27bf38" __line__ }}` | log_line_contains_span_id="true" OR span_id="8fd2201fff27bf38"
This seems wrong - Grafana ends up complaining about the use of “OR” here which doesn’t seem correct ( if I replaced it with a |
it seems to work as intended)
Is this a bug … somewhere? (in Grafana ?)