You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Really struggling to get App Start tracking working for my RN app. The docs don't make it clear whether you must use native initialization for this to work.
I was finally able to get it to somewhat work on iOS by using native initialization and instantiating it in the AppDelegate like this:
However I'm not 100% sure it works because it doesn't show me the startup time but at least doesn't show up empty in the App Starts dashboard.
On Android, I was able to get it to work in production without native initialization, however after doing all this configuration for iOS it doesn't seem to work now. Maybe it will work differently if I push it to production?
I've gotten warnings like these:
[ReactNativeTracing] App start end has not been recorded, not adding app start span
[ReactNativeTracing] App start duration is over a minute long, not adding app start span.
Can someone please clarify how App Start tracking is supposed to be enabled? Do I need to use native initialization and what else am I missing that might not be clear from the docs?
The text was updated successfully, but these errors were encountered:
Hey @ninjz ! Thank you for reaching out here, would you mind sharing following info so we can resolve this problem faster:
SDK version
your Sentry.init(...) config in your JS / TS
make sure you set debug: true, this enables some further logging and helps getting further relevant info
do you use Expo?
Is your root component wrapped by Sentry.wrap(YourRootComponent)?
To give you a general answer - it's not needed to do native initialization of Sentry in your AppDelegate to get your app-starts instrumented by Sentry. Please make sure to undo those changes before we move forward, so there is no interference between Sentry.init in your JS/TS and the one you've in AppDelegate right now.
Description
Really struggling to get App Start tracking working for my RN app. The docs don't make it clear whether you must use native initialization for this to work.
I was finally able to get it to somewhat work on iOS by using native initialization and instantiating it in the AppDelegate like this:
However I'm not 100% sure it works because it doesn't show me the startup time but at least doesn't show up empty in the App Starts dashboard.
On Android, I was able to get it to work in production without native initialization, however after doing all this configuration for iOS it doesn't seem to work now. Maybe it will work differently if I push it to production?
I've gotten warnings like these:
[ReactNativeTracing] App start end has not been recorded, not adding app start span
[ReactNativeTracing] App start duration is over a minute long, not adding app start span.
Can someone please clarify how App Start tracking is supposed to be enabled? Do I need to use native initialization and what else am I missing that might not be clear from the docs?
The text was updated successfully, but these errors were encountered: