Make Live Debugger per-second budgets configurable#4509
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intoMay 12, 2026
Merged
Conversation
Collaborator
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
This was referenced Apr 21, 2026
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: 2057d22 | Docs | Datadog PR Page | Give us feedback! |
bf9a162 to
b9da4f3
Compare
1f6c9f0 to
e48232c
Compare
b9da4f3 to
0040ee8
Compare
d179aeb to
a286fdd
Compare
0040ee8 to
653aee9
Compare
653aee9 to
7d1efe7
Compare
a286fdd to
4253889
Compare
4253889 to
b730634
Compare
8130067 to
e739e7e
Compare
b730634 to
d43971b
Compare
This was referenced May 12, 2026
mormubis
approved these changes
May 12, 2026
Allow the browser debugger to configure global snapshot and per-probe sampling limits through init options so teams can tune backpressure without changing the runtime.
d43971b to
2057d22
Compare
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
Allow Live Debugger users to tune per-second backpressure limits without changing the runtime defaults.
Changes
Add new
DD_DEBUGGER.init()options to configure:Wire those options into the debugger probe budget logic and reset them when the debugger transport is reset. Add unit tests covering the configurable global snapshot limit and configurable per-probe snapshot/non-snapshot limits.
Test instructions
yarn test:unit --spec packages/debugger/src/domain/api.spec.tsyarn test:unit --spec packages/debugger/src/domain/probes.spec.tspackages/debugger/src/entries/main.ts, verify thatDebuggerInitConfigurationexposes:maxSnapshotsPerSecondGloballymaxSnapshotsPerSecondPerProbemaxNonSnapshotsPerSecondPerProbepackages/debugger/src/domain/probes.ts, verify those values are used as the runtime defaults when probe-specific sampling is not set.Checklist