♻️ [RUM-16925] switch debug_ids to recommended URL/Debug-ID array format#4862
Merged
Conversation
The map-of-URL-to-id shape was discouraged because keys containing dots
get split into nested objects by the event platform. Switch to an array
of `{ url, id }` entries per the RFC's recommended format.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
|
Bundles Sizes Evolution
|
thomas-lebeau
approved these changes
Jul 10, 2026
rgaignault
approved these changes
Jul 10, 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.
Summary
_dd.debug_idson RUM error and long task/LoAF events now serializes as an array of{ url, id }entries instead of a{ [url]: id }map, per the recommended format — the map shape was discouraged because keys containing dots get split into nested objects by the event platform.@datadog/rum-events-formatpin to31cc845(already merged upstream) and regeneratedrumEvent.types.tsviayarn json-schemas:sync.buildDebugIdByUrl()insourceCodeContext.tsnow returnsDebugIdEntry[] | undefinedinstead of a map (same name/signature otherwise).'array'as a validModifiableFieldPathstype sobeforeSendredaction still works on_dd.debug_ids.Test plan
yarn typecheckpassesyarn lintpassessourceCodeContext.spec.ts,error.spec.ts,errorCollection.spec.ts,longTaskCollection.spec.ts,assembly.spec.ts,createErrorFieldFromRawError.spec.ts— all greenmicrofrontend.scenario.tsto match the array shape