[APPSEC-62377] Collect Datadog request attribution headers#5811
Conversation
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: f46b1a1 | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-05-27 19:59:20 Comparing candidate commit f46b1a1 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 45 metrics, 1 unstable metrics.
|
Datadog-originated requests use these headers for request attribution. They are tagged independently of user-configured header tagging so downstream systems can distinguish them from regular application traffic.
c0f8247 to
cb4ac0e
Compare
…entory-enrichment
What does this PR do?
Add unconditional tagging for requests landing on customer application generated by Datadog, to distinguish them from real traffic.
Motivation:
RFC-1105: Trace Attribution for Inventory Enrichment and Pollution Prevention
Change log entry
Yes. Prevent Datadog-generated traffic from interfering with application metrics.
Additional Notes:
I did it with generalization in mind simply because I can't decouple it now as it should work with AppSec being disabled or configuration missing. Hence - it lives in Tracer codebase.
I'm working on solution to have a better decoupling.
I've also fixed few overlooks with require statements and typing 🙌🏼
Resolves APPSEC-62413
How to test the change?
CI + ST (enforced)