# how to customize dt.trace\_id and dt.span\_id

**URL:** <https://community.dynatrace.com/t/how-to-customize-dt-trace-id-and-dt-span-id/49495>\
**Category:** Dynatrace Managed\
**Tags:** dynatrace-managed, log-monitoring-class\
**Created:** [December 26, 2024, 11:01am UTC](https://community.dynatrace.com/t/how-to-customize-dt-trace-id-and-dt-span-id/49495 "2024-12-26T11:01:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivakumarp](https://avatars.discourse-cdn.com/v4/letter/s/7ea924/32.png) [@sivakumarp](https://community.dynatrace.com/u/sivakumarp)\
**Post date:** [December 26, 2024, 11:01am UTC](https://community.dynatrace.com/t/how-to-customize-dt-trace-id-and-dt-span-id/49495/1 "2024-12-26T11:01:34Z")

</div>

Hello,

We have enabled auto enrichment for our application with oneagent, we were able to see&nbsp; 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.

---

<div class="post-metadata">

**Author:** ![PacoPorro](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pacoporro/32/36087_2.png) [@PacoPorro](https://community.dynatrace.com/u/PacoPorro)\
**Post date:** [December 26, 2024, 12:17pm UTC](https://community.dynatrace.com/t/how-to-customize-dt-trace-id-and-dt-span-id/49495/2 "2024-12-26T12:17:20Z")

</div>

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