Make Live Debugger per-second budgets configurable#4509
Draft
watson wants to merge 1 commit intowatson/DEBUG-5296/add-live-debuggerfrom
Draft
Make Live Debugger per-second budgets configurable#4509watson wants to merge 1 commit intowatson/DEBUG-5296/add-live-debuggerfrom
watson wants to merge 1 commit intowatson/DEBUG-5296/add-live-debuggerfrom
Conversation
Collaborator
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
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: b730634 | 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
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.
4253889 to
b730634
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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