-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to disable HTTP headers injection? #6285
Comments
Hello @MatanAti, so in this case you can disable it by setting Related configuration documentation and Trace Context Propagation details, hopping this helps your case. |
Hi @link04 thanks for the reply Its needed to be added as ENV variable, right? |
So it should indeed be added as an env var depending on how the app is running, we recommend that as opposed to adding in code changes. For your C# service, I wanted to make sure that you added the env var either on the main directory of the service or registry if applicable and restarted your service, it needs to be fully stop and started so the tracer can pick up the new configuration. If the env var is available for your service then the Startup Logs will include the following value for If even after restarting your service or checking the logs the setting is not taken into account, will recommend you reaching out to the Datadog Support | Help Center where we can take a look at the logs and help you out without showcasing your service data. |
Hi, I have this ENV variable, that seems like for some reason is causing the headers to still be injected: |
Hello @MatanAtiasLSports, so |
Hey, I am having a real hard time disabling HTTP headers injection
I have a .NET core 3.1 application which I run, and I am having issues where external sites block me due to additional headers:
X-Datadog-Parent-Id, X-Datadog-Sampling-Priority, X-Datadog-Tags, X-Datadog-Trace-Id
I have no reason to have this in my service, don't want to attach anything to the HTTP requests going out.
Here is how I define the tracer:
What can I do?
TIA.
The text was updated successfully, but these errors were encountered: