# What "Disable default trace exporter" implications?

**URL:** <https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995>\
**Category:** OpenTelemetry\
**Tags:** opentelemetry, java\
**Created:** [February 6, 2024, 7:43am UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995 "2024-02-06T07:43:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@panda](https://community.dynatrace.com/u/panda)\
**Post date:** [February 6, 2024, 7:43am UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995/1 "2024-02-06T07:43:41Z")

</div>

Hi colleagues:

From the below link I found if we want to manually instrument Java application with OpenTelemetry we need set&nbsp;_ **OTEL\_EXPORTER=none,** _ what is the&nbsp;implications? which part will be impacted on dynatrace UI or somewhere? I do not have a good understanding of what does it mean? could you please explain more details about its impact?

> **[Manually instrument your Java application with OpenTelemetry](https://docs.dynatrace.com/docs/ingest-from/opentelemetry/walkthroughs/java-manual)**
>
> Learn how to instrument your Java application using OpenTelemetry and Dynatrace.

---

<div class="post-metadata">

**Author:** ![lplichart](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/lplichart/32/37771_2.png) [@lplichart](https://community.dynatrace.com/u/lplichart)\
**Post date:** [February 12, 2024, 2:31pm UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995/2 "2024-02-12T14:31:26Z")

</div>

Hi there, I believe this is only needed when using the OneAgent to collect traces, this avoids that OTel data is sent to localhost.&nbsp; As such this does not impact what you see in Dynatrace

---

<div class="post-metadata">

**Author:** ![panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@panda](https://community.dynatrace.com/u/panda)\
**Post date:** [February 26, 2024, 9:48am UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995/3 "2024-02-26T09:48:27Z")

</div>

We are currently using OneAgent to collect traces in our Dynatrace environment, so setting OTEL\_EXPORTER=none should have no impact on our Dynatrace environment, am i right?

---

<div class="post-metadata">

**Author:** ![alexander\_dt](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@alexander\_dt](https://community.dynatrace.com/u/alexander_dt)\
**Post date:** [February 29, 2024, 2:07pm UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995/4 "2024-02-29T14:07:45Z")

</div>

[@lplichart](https://community.dynatrace.com/user/44967)’s is right on. Disabling the exporter in a Dynatrace context is primarily done when you instrument the application with OneAgent and ingest traces automatically (for one of the five supported languages).

It’s a setting that only applies to the application using the environment variable and should not affect your overall Dynatrace environment.

---

<div class="post-metadata">

**Author:** ![panda](https://avatars.discourse-cdn.com/v4/letter/p/71c47a/32.png) [@panda](https://community.dynatrace.com/u/panda)\
**Post date:** [March 1, 2024, 2:38am UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995/5 "2024-03-01T02:38:40Z")

</div>

HI&nbsp;[@alexander\_dt](https://community.dynatrace.com/user/59135),

Thank you for your explanation. However, I’m still unclear about the impact of setting OTEL\_EXPORTER=none. How can I assess its effects for our environment? by checking our spring boot application if using&nbsp;OTEL\_EXPORTER&nbsp;environment variable in code or configuration file?

---

<div class="post-metadata">

**Author:** ![PierreGutierrez](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pierregutierrez/32/5934_2.png) [@PierreGutierrez](https://community.dynatrace.com/u/PierreGutierrez)\
**Post date:** [March 4, 2024, 2:26am UTC](https://community.dynatrace.com/t/what-disable-default-trace-exporter-implications/43995/6 "2024-03-04T02:26:32Z")

</div>

Hi&nbsp;[@panda](https://community.dynatrace.com/user/69325)&nbsp;  
I have just been having a similar case with my customer, I’ll tell you, I think it could be useful to you.

First, let me tell you that the parameter OTEL\_EXPORTER is a variable used by OpenTelemetry and is not “own or direct from dynatrace”.

In my experience, the default OpenTelemetry implementation (when you don’t configure anything) looks to send to an exporter (localhost), when this happens you can see trace as follows:

 ![PierreGutierrez_1-1709518638530.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/5/a5bab37b912d2ab2477fe697c4778d86cb281429.png)

**A best practice in case you do not have another tool to which you need to ingest the traces, is to configure the variable.**

**OTEL\_EXPORTER=none**

This way Opentelemetry will not try to ingest anything to localhost.  
([Manually instrument your Java application with OpenTelemetry — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/otel-wt-java-manual#disable-default-trace-exporter))

And for the case you present it is ideal, since it is being monitored with OneAgent, the agent will automatically capture the Opentelemetry information.

I think it is important to apply this best practice.  
Because if this is not done, you are ingesting traces with errors that we know will _“always generate errors directed to localhost”,_ as happened to my customer.  
I hope my experience is useful 😄
