You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add an optional version field to the live-debugger plugin config and use
it to validate consistency with sourcemap uploads. This documents the
browser build identity contract while still allowing instrumentation to
work when no version is configured.
Copy file name to clipboardExpand all lines: packages/plugins/live-debugger/README.md
+12Lines changed: 12 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,7 @@ the plugin throws an error with the exact install command above.
50
50
```ts
51
51
liveDebugger?: {
52
52
enable?: boolean;
53
+
version?:string;
53
54
include?: (string|RegExp)[];
54
55
exclude?: (string|RegExp)[];
55
56
honorSkipComments?:boolean;
@@ -72,6 +73,8 @@ Each instrumented function gets:
72
73
73
74
The instrumentation checks whether probes are active by calling `$dd_probes(functionId)`. When no probes are active, the function returns `undefined` and all instrumentation is skipped — only the `$dd_probes` call and a conditional check remain on the hot path.
74
75
76
+
When `liveDebugger.version` is set, it should match the immutable deployed build identifier used by your Browser Debugger SDK initialization. If you also upload sourcemaps through the Error Tracking plugin, use the same value for `errorTracking.sourcemaps.releaseVersion`.
77
+
75
78
**Example transformation (block body):**
76
79
77
80
```javascript
@@ -122,6 +125,15 @@ const double = (x) => {
122
125
123
126
Enable or disable the plugin without removing its configuration.
124
127
128
+
### liveDebugger.version
129
+
130
+
Optional. When set, use an immutable deployed browser build identifier. This value should match:
131
+
132
+
- the `version` passed to `@datadog/browser-debugger`
133
+
-`errorTracking.sourcemaps.releaseVersion` when sourcemap upload is enabled
134
+
135
+
If omitted, Live Debugger instrumentation still works, but browser build lookup and source-code-aware resolution will gracefully degrade.
0 commit comments