How can i configure my Tempo Datasource to use the TraceID label not Regex?

I would like to use the “label” instead of the regex to configure my Loki datasource through its Helm install.

This worked for the Regex but i want to use the label as shown below…

derivedFields:
    - datasourceName: tempo
      datasourceUid: tempo
      matcherRegex: '"(?:traceId|traceID|trace_id)":"((\\\"|[^"])*)"'
      name: traceId
      url: "$${__value.raw}"

This works when i manually configure it inside of Grafana

My question is how to configure it through Helm and what the properties expected are.

I gave you idea how to discover that, not copy&paste solution.

Read me message. I already know what works from the UX. The property names for the label is not obvious nor documented from what I can tell. Previously i used the regexMatcher - what are the properties needed to use the label.

I had the same problem and was desperately searching for documentation. After checking the source code I saw there is a matcherType field, which can be set to label

derivedFields:
  - datasourceUid: tempo
    name: TraceID
    url: $${__value.raw}
    matcherType: "label"
    matcherRegex: "trace_id"
    urlDisplayLabel: "View Trace"
1 Like