RewriteFrames
not functional in browser environments
#6423
Labels
Milestone
RewriteFrames
not functional in browser environments
#6423
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which package are you using?
@sentry/vue
SDK Version
7.23.0
Framework Version
Vue 3.2.40
Link to Sentry event
https://sentry.io/organizations/swimm/issues/3788945788/events/387150439b9a4cb787c4582e97bd40ae/?project=4504236048646144&query=is%3Aunresolved&referrer=previous-event
Steps to Reproduce
We have a virtual server (Inside a VS Code webview, they use a
ServiceWorker
to simulate it internally), that hosts our assets under a dynamic subdirectory, which is in fact the full path to the file on the users system. As such the filenames in the reported Sentry stack traces include prefix and don't match the uploaded source maps which are uploaded without it. As it is dynamic, I can't just useurlPrefix
, so as in similar cases I tried to useRewriteFrames
to normalize the uploaded paths to match the actual root Sentry knows about. But...RewriteFrames
doesn't do anything in the browser by default when just specifyingroot
, and it looks like I'll have to write my owniteratee
. This is not very convenient. I'd rather it just worked given the proper root path to strip even in browser context.Steps to Reproduce:
urlPrefix
, instead try to useRewriteFrames
to normalizes the paths.Expected Result
RewriteFrames
should support such scenarios.Actual Result
It doesn't do anything due to the check at
sentry-javascript/packages/integrations/src/rewriteframes.ts
Line 77 in 71b308f
The text was updated successfully, but these errors were encountered: