⚗️ Add Live Debugger lifetime event budgets#4510
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intoMay 21, 2026
Merged
⚗️ Add Live Debugger lifetime event budgets#4510gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
5 tasks
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: b66239c | Docs | Datadog PR Page | Give us feedback! |
1f6c9f0 to
e48232c
Compare
5d9fb49 to
d1fbe46
Compare
d179aeb to
a286fdd
Compare
16abcf5 to
74d9386
Compare
a286fdd to
4253889
Compare
4253889 to
b730634
Compare
74d9386 to
0744137
Compare
b730634 to
d43971b
Compare
0744137 to
b1be5d4
Compare
b1be5d4 to
07c1e71
Compare
d43971b to
2057d22
Compare
Base automatically changed from
watson/DEBUG-5296/make-limits-configurable
to
main
May 12, 2026 14:59
07c1e71 to
95da414
Compare
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 95da4144b2
ℹ️ About Codex in GitHub
Your team has set up Codex to 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 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Add configurable lifetime budgets for snapshot and non-snapshot probes, and auto-unregister probes once they exhaust their allowed sends.
95da414 to
b66239c
Compare
Collaborator
Author
|
@codex address that feedback |
Summary
Testing
|
Collaborator
Author
|
Ignore the codex comment above. I didn't mean to ask it to try and fix anything |
p-datadog
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
Add a circuit breaker so a single Live Debugger probe version cannot emit unbounded events over its lifetime.
Changes
Add new
DD_DEBUGGER.init()options to configure lifetime budgets for:Track emitted events per active probe version in the debugger runtime and automatically unregister probes once they exhaust their configured lifetime budget. Add unit tests covering snapshot and non-snapshot lifetime limits, skipping further collection after exhaustion, and resetting the budget when a new probe version is delivered.
Test instructions
yarn test:unit --spec packages/debugger/src/domain/api.spec.tspackages/debugger/src/entries/main.ts, verify thatDebuggerInitConfigurationexposes:maxSnapshotsPerProbeLifetimemaxNonSnapshotsPerProbeLifetimepackages/debugger/src/domain/probes.ts, verify that initialized probes track:eventsSentInLifetimelifetimeBudgetWarningEmittedpackages/debugger/src/domain/api.ts, verify that exhausted probes are removed after their final allowed send.Checklist