Skip to content
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

Can we disable injection of DD tracing headers for some requests? #3685

Open
milanaleksic opened this issue Jul 29, 2022 · 4 comments
Open

Comments

@milanaleksic
Copy link

Hi, I have a question related to the automatic injection of tracing headers.

I am using Apache HTTP client and I noticed trace agent automatically adds these headers:

X-Datadog-Parent-Id: 920498374318.......
X-Datadog-Sampling-Priority: 1
X-Datadog-Trace-Id: 1844094....

I would like to not have these injected for some requests, going to external parties. How can I achieve that?

I don't want to remove them from all places, mind you, just for this single particular HTTP client meant to be used with external services.

@devinsba
Copy link
Contributor

devinsba commented Aug 1, 2022

@milanaleksic unfortunately this does not exist yet in the Java library. Would a list of http hosts to not send to work for you?

@milanaleksic
Copy link
Author

@milanaleksic unfortunately this does not exist yet in the Java library. Would a list of http hosts to not send to work for you?

Hi @devinsba. It wouldn't help since the target hosts are unknown (our customers are free to enter target 3rd party systems to which these requests will be sent).

@devinsba
Copy link
Contributor

devinsba commented Aug 1, 2022

Ok, good to know. Would a list of allowed hosts work? IE: only send the headers to listed hosts?

@milanaleksic
Copy link
Author

Ok, good to know. Would a list of allowed hosts work? IE: only send the headers to listed hosts?

That would be good enough for sure! Thanks for considering

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants