Repository navigation
feat(frames): Display third party urls in stackframes - #85877
Conversation
❌ 1 Tests Failed:
View the top 1 failed test(s) by shortest run time
To view more test analytics, go to the Test Analytics Dashboard |
Bundle ReportChanges will increase total bundle size by 8.53MB (25.7%) ⬆️
Affected Assets, Files, and Routes:view changes for bundle: app-webpack-bundle-array-pushAssets Changed:
Files in
Files in
|
| }); | ||
|
|
||
| describe('shouldDisplayAbsPathInTitle', () => { | ||
| it('returns false when absPath is from event subdomain', () => { |
There was a problem hiding this comment.
shouldn't this be true or the check toBe(false)?
| it('returns false when absPath is from event subdomain', () => { | |
| it('returns true when absPath is from event subdomain', () => { |
There was a problem hiding this comment.
Thinking behind this test was: If my sources are hosted on the same or sub-domain, I do not want to show the url by default.
|
@getsentry/security is there any risk in linking to arbitrary third parties here? |
Co-authored-by: Scott Cooper <[email protected]>
armenzg
left a comment
There was a problem hiding this comment.
I will let FE folks approve this.
| const parts = hostname.split('.'); | ||
| return parts.slice(-2).join('.'); | ||
| } catch { | ||
| return ''; |
There was a problem hiding this comment.
You may want to capture this to inspect edge cases and see if they can be handled properly.
| try { | ||
| return new URL(url).protocol; | ||
| } catch { | ||
| return ''; |
There was a problem hiding this comment.
May want to catch it and review edge cases. You can later remove logging it to Sentry once you have handled all edge cases.
This pr adds functionality for passing an `showAbsPath` flag to a frame title. If the `absPath` url differs from the `eventOrigin`, the full `absPath` is displayed. This makes it easier to spot errors from third party providers like plausible. This logic is currently only applied for js stackframes. Example: <img width="1113" alt="Screenshot 2025-02-25 at 19 01 51" src="https://github.com/user-attachments/assets/5869ea54-d3a6-4bf1-9cae-88d8b6a7af9b" /> --------- Co-authored-by: Scott Cooper <[email protected]> Co-authored-by: s1gr1d <[email protected]>
This pr adds functionality for passing an
showAbsPathflag to a frame title.If the
absPathurl differs from theeventOrigin, the fullabsPathis displayed. This makes it easier to spot errors from third party providers like plausible.This logic is currently only applied for js stackframes.
Example: