getsentry / sentry-capacitor

The official Sentry SDK for Capacitor

Home Page:https://sentry.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Align RewriteFrames trimming.

lucas-zimerman opened this issue · comments

I noticed that on Sentry React Native the following StackTrace

        'at this(/home/username/sample-workspace/sampleapp.collect.capacitor/node_modules/capacitor/Libraries/Renderer/src/renderers/native/capacitorNativeBaseComponent.js:74:41)\n',

becomes

app:///capacitorNativeBaseComponent.js

where on capacitor it becomes

app:///home/username/sample-workspace/sampleapp.collect.capacitor/node_modules/capacitor/Libraries/Renderer/src/renderers/native/capacitorNativeBaseComponent.js

This doesn't seems to affect the stacktrace as seen below, but ideally, we should Align if we keep this behaviour or migrate to the one used by React Native
image

It was decided to keep the current behaviour and we'll not follow how it's done on React Native