cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Looking to upgrade from Dynatrace Managed to SaaS? See how

how to customize dt.trace_id and dt.span_id

sivakumarp
Visitor

Hello,

We have enabled auto enrichment for our application with oneagent, we were able to see  dt.trace_id and dt.span_id in our logs.

Can we customize the names of the keys? (dt.trace_id and dt.span_id to trace_id and span_id)

Note: we are using managed version of Dynatrace.

Thanks in advance.

 

 

1 REPLY 1

PacoPorro
Dynatrace Leader
Dynatrace Leader

I'm afraid it's not possible to avoid this. The dt.trace_id is automatically added by the OneAgent code module. This is done to prevent any conflicts with other systems that might also add a trace_id to the log entries. For example, OpenTelemetry is one such system that could potentially add its own trace_id.

Featured Posts