Repository navigation
feat(core): Report a browser runtime in SDK config - #26834
Conversation
Browser clients set no runtime option, so their SDK config payload had no runtime while every server client reports one. Report { name: 'browser' } when the client sets none, and keep the runtime out of the hash until we decide which of its parts identify a configuration.
Configurations are deduplicated by hash, so the hash has to cover the whole payload, runtime included.
Optional E2E testsSome optional checks were not successful. They do not block the merge. 2 not successful, 74 successful. See the run.
Successful checks
|
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e268386. Configure here.
| const browser = reportAttributes(getDefaultTestClientOptions(options)); | ||
|
|
||
| expect(new Set([node, otherNode, browser].map(attributes => attributes['sentry.sdk_config.hash'])).size).toBe(3); | ||
| }); |
There was a problem hiding this comment.
Feat lacks integration or E2E test
Low Severity
This feat only adds unit tests that mock isBrowser(), so they never prove a real browser client reports { name: 'browser' }. Feat PRs need at least one integration or E2E test; this was flagged because it was mentioned in the review rules.
Additional Locations (1)
Triggered by project rule: PR Review Guidelines for Cursor Bot
Reviewed by Cursor Bugbot for commit e268386. Configure here.
size-limit report 📦Compared: da7b130 (PR test merge using develop at e7a1a76) Against: e7a1a76 (develop) · base run #67805 ✅ Baseline matches: this diff contains only this PR's changes.
|


SDK config reports from the browser had no
runtimewhile every server client sends one, fixed by reporting{ name: 'browser' }when the client sets none.The tests cover the browser runtime, its absence outside the browser, and that a different runtime gives a different hash.