Issue provisioning Tempo (Traces to Logs) with YAML

Hi,

I am trying to configure a Grafana Tempo datasource via provisioned YAML, but encountering issues with the tracesToLogsV2 spec which is documented here

I cannot figure out the YAML required to implement the below:

image

I’ve attempted to use the following YAML, but the tag names and new names get disregarded, along with the “Filter by trace ID” setting

    tracesToLogsV2:
      datasourceUid: my-loki-datasource
      filterByTraceId: true
      spanEndTimeShift: -30m
      spanStartTimeShift: 30m
      tags:
        - {key:'service.name',value:'app'}
        - {key:'pod.namespace',value:'namespace'}

image

Appreciate any help with this!

1 Like

Hello, this formatting worked for me:
tags: [{ key: 'http.server_name', value: 'pod' }, { key: 'pod.namespace', value: 'namespace' }]