Commit 7375560
authored
feat: Support proxy for debugger endpoint v2 (#918)
Now we support proxying requests from `/debugger/v1/input`. This PR adds
`/debugger/v2/input` and `/debugger/v1/diagnostics`.
#925
## Test
### Steps
1. Set up Exception Replay following
https://docs.datadoghq.com/error_tracking/backend/exception_replay/
2. Build a test layer and install it on the Lambda
3. Set `DD_TRACE_DEBUG` to `true`
4. Change Lambda timeout from 3s to 30s. Seems Exception Replay
dramatically increases the duration of the first invocation. It took
8–9s for my tests.
### Result
Before:
- In CloudWatch logs, see the error multiple times:
`debugger::unsupported_agentUnsupported Datadog agent detected.
Snapshots from Dynamic Instrumentation/Exception Replay/Code Origin for
Spans will not be uploaded. Please upgrade to version 7.49.0 or later`
After:
- No such error.
- See tracer debug log: `Detected /debugger/v2/input endpoint`
- See the error on Error Tracking page
<img width="486" height="166" alt="image"
src="https://github.com/user-attachments/assets/3d48cb2b-0d5a-4806-97e1-e8146642ce64"
/>
## Notes
Thanks @nhulston @joeyzhao2018 @purple4reina for discussion and helping
debug.1 parent 626ee59 commit 7375560
1 file changed
Lines changed: 29 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| |||
69 | 71 | | |
70 | 72 | | |
71 | 73 | | |
72 | | - | |
| 74 | + | |
| 75 | + | |
73 | 76 | | |
74 | 77 | | |
75 | 78 | | |
| |||
256 | 259 | | |
257 | 260 | | |
258 | 261 | | |
259 | | - | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
260 | 268 | | |
261 | 269 | | |
262 | 270 | | |
| |||
385 | 393 | | |
386 | 394 | | |
387 | 395 | | |
| 396 | + | |
388 | 397 | | |
389 | 398 | | |
390 | 399 | | |
391 | 400 | | |
392 | 401 | | |
393 | 402 | | |
394 | | - | |
| 403 | + | |
395 | 404 | | |
396 | 405 | | |
397 | 406 | | |
398 | 407 | | |
399 | 408 | | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
400 | 422 | | |
401 | 423 | | |
402 | 424 | | |
| |||
423 | 445 | | |
424 | 446 | | |
425 | 447 | | |
426 | | - | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
427 | 451 | | |
428 | 452 | | |
429 | 453 | | |
| |||
0 commit comments