-
-
Notifications
You must be signed in to change notification settings - Fork 338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
App Start Tracking Not Working #4184
Comments
Hey @ninjz ! Thank you for reaching out here, would you mind sharing following info so we can resolve this problem faster:
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 |
Thanks for the reply @rwachtler! I actually managed to figure it out shortly after posting this issue. I saw that v6 of the SDK came out and decided to give that a try. After updating it ended up working without any of the native initialization. |
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: