debugger: snapshot correlation tests#7330
Conversation
|
|
|
3c5753f to
af522ad
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: af522adb7c
ℹ️ 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".
There was a problem hiding this comment.
Go's correlationLoop weblog endpoints were missing time.Sleep(time.Second) per loop iteration, making Test_Debugger_Per_Span_Budget a false-positive gate for Go: without the sleep the 3-iteration loop completes in microseconds, so a time-based rate-limit (1/sec) and a span-scoped budget (1/span) both emit ≤1 snapshot and the test can't distinguish them. Fix applied: added time.Sleep(time.Second) to all five Go weblog variants (chi, echo, gin, net-http, net-http-orchestrion) and updated all affected Go line-number mappings in tests/debugger/utils.py (+1 on each entry due to the new "time" import line).
📊 Validated against 12 scenarios · Open Bits AI session
🤖 Datadog Autotest · Commit af522ad · What is Autotest? · Any feedback? Reach out in #autotest
af522ad to
f8ce791
Compare
Motivation
The Live Debugger lets an engineer drop logpoints into running code and see snapshots of what happened. Those snapshots are supposed to tell a complete story of a request from start to finish, but today the related snapshots often arrive in pieces, with no signal that anything is missing. There is now an approved plan for how every language's tracer should behave so the story stays whole, but there was no automated way to say whether each language actually follows it.
This adds that check, so we can track, per language, who meets the standard and who does not yet.
Changes
Adds end-to-end tests that hold each language's tracer to the agreed snapshot-correlation standard:
The tests run for all six languages (Go, Java, .NET, Node, Python, Ruby). Because no tracer has built this behavior yet, every language is currently marked "not yet implemented," so the tests run without failing the build and will turn green automatically once a language implements the standard. The change also adds the test endpoints to each language's sample app, Go included.
Workflow
🚀 Once your PR is reviewed and the CI green, you can merge it!
🛟 #apm-shared-testing 🛟
Reviewer checklist
tests/ormanifests/is modified ? I have the approval from R&P teambuild-XXX-imagelabel is present