Default debugger version and embed build identity in snapshots#4511
Open
watson wants to merge 1 commit into
Open
Default debugger version and embed build identity in snapshots#4511watson wants to merge 1 commit into
watson wants to merge 1 commit into
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. |
Bundles Sizes Evolution
🚀 CPU Performance
🧠 Memory Performance
|
🎉 All green!❄️ No new flaky tests detected 🎯 Code Coverage (details) 🔗 Commit SHA: cd05b6a | Docs | Datadog PR Page | Give us feedback! |
4c0a5c3 to
bc690fe
Compare
bf9a162 to
b9da4f3
Compare
bc690fe to
44d9b67
Compare
b9da4f3 to
0040ee8
Compare
44d9b67 to
c3334a6
Compare
0040ee8 to
653aee9
Compare
cff6b3c to
1ffcdba
Compare
1ffcdba to
5259f76
Compare
43903ba to
7d1efe7
Compare
7defb2b to
93ca4e3
Compare
1ed65c3 to
f05e4d1
Compare
8130067 to
0bcb507
Compare
This was referenced May 12, 2026
0bcb507 to
1eeda79
Compare
077b2b1 to
1a6bded
Compare
Use build-plugin injected Live Debugger metadata as the default runtime `init().version`, and warn when an explicit init version disagrees. Document the fallback behavior and cover the new version resolution path in unit tests.
1a6bded to
cd05b6a
Compare
13d0744 to
0a9836c
Compare
maycmlee
approved these changes
May 13, 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 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
The Browser Debugger SDK should be able to pick up the browser build version injected by the Live Debugger build plugin so applications do not need to pass the same deployed build identifier into
datadogDebugger.init()a second time.The debugger snapshot payload also needs
applicationIdandversionso downstream browser-build and source-resolution flows can identify the correct browser build when git tags are unavailable.Changes
Version defaulting from build metadata
datadogDebugger.init().versionfrom the build-plugin metadata when callers omitversioninit({ version })value authoritative and warn if it disagrees with the injected build-plugin versionversionis optional, but browser build lookup and source-aware resolution depend on an immutable deployed build identifier when availableSnapshot build identity
applicationIdandversionas a structuredbuildobject inside thedebugger.snapshotpayload (debugger.snapshot.build = { applicationId, version })application_idas a top-level field and duplicatingapplication_id/versionintoddtags, which was vulnerable to tag collision from downstream enrichmentbuildobject rides on the existing@debugger.snapshotcolumn projection, so the web UI reads it without any query changesVersion documentation
versionis optional in the Browser Debugger README and API docsversionshould be the immutable deployed browser build identifierversionis absentTest instructions
Run:
Part of larger effort
This PR is one part of the browser Live Debugger source-resolution work across multiple repositories:
Checklist