DataDog / dd-trace-dotnet

.NET Client Library for Datadog APM
https://docs.datadoghq.com/tracing/
Apache License 2.0
413 stars 132 forks source link

Feature Request: Disable injection of DD tracing headers for some requests #5726

Open williamscs opened 1 week ago

williamscs commented 1 week ago

Are you requesting automatic instrumentation for a framework or library? Please describe. This is for all HTTP requests.

Is your feature request related to a problem? Please describe. We have external APIs that we hit which will block our traffic if the request has unexpected headers. There is an option to disable X headers entirely, but this also breaks downstream tracing for internal calls.

Describe the solution you'd like We would like to either have a blocklist for that partner, or an allowlist for our internal traffic.

Describe alternatives you've considered Setting DD_TRACE_X_DATADOG_TAGS_MAX_LENGTH to 0 should disable for all HTTP requests.

https://github.com/DataDog/dd-trace-dotnet/issues/3000#issuecomment-1191368308

Additional context Similar requests in other tickets: