26 Dec 2024 11:01 AM - last edited on 30 Dec 2024 07:44 AM by MaciejNeumann
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.
26 Dec 2024 12:17 PM
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.