# Disableing printing dt.trace\_id and dt.span\_id in logs

**URL:** <https://community.dynatrace.com/t/disableing-printing-dt-trace-id-and-dt-span-id-in-logs/51214>\
**Category:** Logs\
**Tags:** log-configuration, logs\
**Created:** [April 14, 2025, 11:49am UTC](https://community.dynatrace.com/t/disableing-printing-dt-trace-id-and-dt-span-id-in-logs/51214 "2025-04-14T11:49:41Z")\
**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:** [April 14, 2025, 11:49am UTC](https://community.dynatrace.com/t/disableing-printing-dt-trace-id-and-dt-span-id-in-logs/51214/1 "2025-04-14T11:49:41Z")

</div>

Can we disable dt.trace\_id and dt.span\_id in logs ( auto-enrichment of log)?

---

<div class="post-metadata">

**Author:** ![yanezza](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/yanezza/32/5036_2.png) [@yanezza](https://community.dynatrace.com/u/yanezza)\
**Post date:** [April 14, 2025, 3:45pm UTC](https://community.dynatrace.com/t/disableing-printing-dt-trace-id-and-dt-span-id-in-logs/51214/2 "2025-04-14T15:45:30Z")

</div>

Hi,

Disable the OneAgent feature for auto-enrichment. You can do this globally, at the process group level, or at the K8S cluster/namespace level. Keep in mind that if you disable this feature, the logs will no longer be linked to the trace.
