Fields detection between Loki and Tempo without printing TraceID to the log line

I have a json logs contains multiple fields, including trace_id and span_id, e.g:


To make it more pretty and human readable, I use the following formatting pipeline:

{app="myapp"} | json  | __error__ != "JSONParserErr" | label_format level=lvl | line_format `<{{.lgr}}> {{.m}}`

So the line in the dashboard contains only timestamp from metadata, logger name and logger line. Other fields available in the details of the line, including trace_id and span_id:

The problem (and the question) is - now to enable link to Tempo without printing a trace_id to the log line (with printing it works as expected)?