[RUM-18763] feat(webgl)!: upgrade to Browser SDK v7 #335
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 353 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.351
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #335"
general
weight: 0.35
barboraplasovska
What and why?
WebGL currently loads Browser SDK v6. Update the sample template to v7 with
crossorigin="anonymous"and document the customer migration steps inMIGRATION.md.Use stable resource-header capture and inherit SDK defaults for session persistence and console forwarding.
Compatibility changes
Explicitly set
trackUserInteractions: falseto match Flutter. Unity previously inherited v6'struedefault, so eligible browser clicks could generate automatic RUM actions. This intentionally stops automatic browser actions; explicitly reported Unity RUM actions continue to work.Leave
forwardConsoleLogsunset, matching Flutter. V6 implicitly forwardedconsole.errorthroughforwardErrorsToLogs; v7 does not. Unity C# exceptions are still reported to RUM when enabled, but their console output is no longer also captured as Logs. NormalForwardUnityLogsforwarding remains supported.First-party matching fix
The WebGL bridge computed a host regex but passed the bare hostname to the Browser SDK instead. That value became an unescaped, unanchored JavaScript regex: configuring
api.example.comcould trace a request tohttps://unrelated.test/path/api.example.com/resource.Pass the computed, escaped regex and anchor it to the HTTP(S) URL's host and configured port, including subdomains. The unrelated-origin regression case verifies that a hostname in the path does not cause tracing headers or baggage to be injected.
Tests
Split request integration coverage into four named tests using the default integration settings asset. Share view lifecycle, request completion, and resource polling helpers with the header-capture test. Validate tracing headers, resource correlation, and duplicate prevention across Android, iOS, and WebGL.
Validation:
Review checklist