Open
Description
Thanks for finally adding Structured Metadata support. I would like to propose an enhancement
Could you add either an option to disable, or disable by default, sending of fields with null/empty value?
I would like to use
<structuredMetadataPattern>trace_id=%mdc{traceId}</structuredMetadataPattern>
But when no traceId is present in mdc, in Loki I see the following
This breaks navigation from traces to logs, as empty link is generated
https://grafana.com/docs/grafana/latest/datasources/tempo/link-trace-id/
resulting in an empty screen as trace id is not populated
Using none shown in example results in same problem - none is not a valid trace id in tempo, at any time.
See discussion for logstash-logback-encoder and same feature request for ideas logfellow/logstash-logback-encoder#201