[NO-TICKET] Profiling: Add setting to use system dns#5425
Conversation
**What does this PR do?** This PR introduces a new profiler advanced setting `experimental_use_system_dns` (controlled via `DD_PROFILING_EXPERIMENTAL_USE_SYSTEM_DNS` environment variable) that allows falling back to the system DNS resolver instead of using libdatadog's built-in resolver. The setting defaults to `false`, meaning that by default the libdatadog built-in DNS resolver is used. **Motivation:** Using system DNS has been flagged as problematic in e.g. #3815 and thus avoiding it by default for profiling will remove one of the potential sources for issues. **Additional Notes:** See DataDog/libdatadog#1558 for more details on the libdatadog side of this feature. **How to test the change?** This change includes test coverage.
|
✅ Tests 🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 3cb9136 | Docs | Datadog PR Page | Was this helpful? React with 👍/👎 or give us feedback! |
BenchmarksBenchmark execution time: 2026-03-06 15:23:59 Comparing candidate commit 3cb9136 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 46 metrics, 0 unstable metrics.
|
What does this PR do?
This PR introduces a new profiler advanced setting
experimental_use_system_dns(controlled viaDD_PROFILING_EXPERIMENTAL_USE_SYSTEM_DNSenvironment variable) that allows falling back to the system DNS resolver instead of using libdatadog's built-in resolver.The setting defaults to
false, meaning that by default the libdatadog built-in DNS resolver is used.Motivation:
Using system DNS has been flagged as problematic in e.g. #3815 and thus avoiding it by default for profiling will remove one of the potential sources for issues.
Change log entry
Yes. Profiling: Add setting to use system dns
Additional Notes:
See DataDog/libdatadog#1558 for more details on the libdatadog side of this feature.
How to test the change?
This change includes test coverage.