chore(debugger): correct agent endpoint matching#19124
Conversation
Codeowners resolved as |
Circular import analysis
|
ee127ab to
7168ecd
Compare
7168ecd to
a7e104f
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a7e104f9c0
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
🎉 All green!🧪 All tests passed 🔗 Commit SHA: 3a882ea | Docs | Datadog PR Page | Give us feedback! |
BenchmarksBenchmark execution time: 2026-07-17 14:44:12 Comparing candidate commit 3a882ea in PR branch Found 0 performance improvements and 4 performance regressions! Performance is the same for 612 metrics, 10 unstable metrics. scenario:iastaspects-index_aspect
scenario:iastaspectsospath-ospathbasename_aspect
scenario:span-start
scenario:telemetryaddmetric-1-count-metric-1-times
|
a7e104f to
49d05ad
Compare
|
Bits Code status: ✅ Done Comment @DataDog to request changes |
ce06670 to
0ba3953
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ce06670d07
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
0ba3953 to
1decfa3
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 1decfa3891
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
The agent's /info endpoints list may or may not include a leading slash depending on the agent version. The signal uploader only matched the leading-slash form, so newer agents that advertise the debugger endpoints without one were misreported as unsupported: snapshot and log uploads were disabled and an "unsupported agent" warning was logged on every upload cycle (as often as once per second). Normalize the advertised endpoints before matching, consistent with remote config and CI visibility. Also throttle the agent capability check when the agent is reachable but does not advertise the required endpoints, so the warning is not logged every tick. The throttle is scoped to that case only (transient /info failures and upload failures on a supported agent still recover on the next tick) and is reset on fork so a child re-checks immediately.
1decfa3 to
3a882ea
Compare
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3a882ea484
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
Description
The tracer sometimes incorrectly reported a supported Datadog Agent as unsupported, which disabled Dynamic Instrumentation, Exception Replay, and Code Origin for Spans uploads and logged a repeated "unsupported agent" warning.
This fixes the Agent capability detection so supported Agents are recognized correctly, and reduces how often the check runs when an Agent genuinely lacks the required endpoints.
Testing
Updated the signal uploader unit tests to cover Agent capability detection and the throttled check.
Risks
Low. Agent detection is more robust; genuinely unsupported Agents are still handled as before.
Additional Notes
None.