-
-
Notifications
You must be signed in to change notification settings - Fork 344
App start duration is over a minute long, not adding app start span #4438
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
Comments
Hi @asnaseer, I see two main issues in the logs. Based on the log below. When do you call
Based on the log below. If you can upgrade to the RN SDK v6 this limitation was removed for dev builds as part of the start time is bundling of the JS which can take more than a minute. You can also try this in a Release version, which should start under a minute. Note that the start time is measured till the firs screen from the navigation container is rendered.
|
I call
If I add logging to my
then I see my logs appear as:
Which specific library do you mean here? We use these libraries in
|
@krystofwoldrich If you meant upgrade to v6 of the |
After upgrading
I then ran the app locally via
which seems to have several error logs of the form:
The app does not seem to work properly after this upgrade and I still do not see anything under the |
Hi @asnaseer,
Yes, that's what I meant.
The https://github.com/getsentry/sentry-react-native/blob/main/packages/core/package.json#L69-L74 But was bundled with |
No we do not. After running
|
Thank you for all the details, the versions are correct. Would you be able to able to reproduce this in an example project which you could share with us? |
I just updated to the latest version of
This still has that last log line Also, as soon as I navigate to another screen in our app it fails with these logs:
|
The native code is out of sync with your JS code. Please rebuild the native part of the application (including pod install on iOS) and the |
@krystofwoldrich D'oh! How could I have missed that obvious error - thanks for spotting it 👍 I built a new dev client, installed it on my device and re-ran the app to now see these logs:
This still has that log line The good news is that in the Sentry web page, if I click on |
thanks for the update @asnaseer |
As long as that log message is benign and does not indicate any serious issue, then I would be happy for you to close this issue. |
Hi @asnaseer,
Usually, this means that |
@krystofwoldrich If you look at my comment above: #4438 (comment) You will see that I do indeed call |
Thank you for pointing back to the comment, I see now. Then you can ignore the message. |
@krystofwoldrich Sorry, I made a mistake when I said:
The tabs |
Thank you for the message. |
What React Native libraries do you use?
Expo (mobile only), Expo Application Services (EAS), React Navigation
Are you using sentry.io or on-premise?
sentry.io (SaS)
@sentry/react-native SDK Version
5.36.0
How does your development environment look like?
info Fetching system and libraries information...
System:
OS: macOS 13.7.2
CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
Memory: 1.17 GB / 32.00 GB
Shell:
version: "5.9"
path: /bin/zsh
Binaries:
Node:
version: 18.20.2
path: ~/.nvm/versions/node/v18.20.2/bin/node
Yarn:
version: 1.22.10
path: /usr/local/bin/yarn
npm:
version: 10.5.0
path: ~/.nvm/versions/node/v18.20.2/bin/npm
Watchman: Not Found
Managers:
CocoaPods:
version: 1.15.2
path: /usr/local/bin/pod
SDKs:
iOS SDK:
Platforms:
- DriverKit 23.2
- iOS 17.2
- macOS 14.2
- tvOS 17.2
- visionOS 1.0
- watchOS 10.2
Android SDK:
API Levels:
- "31"
- "34"
Build Tools:
- 31.0.0
- 33.0.1
- 34.0.0
System Images:
- android-31 | Intel x86_64 Atom
Android NDK: Not Found
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10811636
Xcode:
version: 15.2/15C500b
path: /usr/bin/xcodebuild
Languages:
Java:
version: 17.0.11
path: /usr/bin/javac
Ruby:
version: 2.6.10
path: /usr/bin/ruby
npmPackages:
"@react-native-community/cli":
installed: 15.1.3
wanted: latest
react:
installed: 18.2.0
wanted: 18.2.0
react-native:
installed: 0.74.5
wanted: 0.74.5
react-native-macos: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: true
newArchEnabled: false
Sentry.init()
In a separate file:
Steps to Reproduce
yarn start
Expected Result
I did not expect to see these in the log above:
In the Sentry web page, I am clicking on
Mobile
in the left-hand-panel and expecting to see results in the tabs:Overview
,App Starts
,Screen Loads
,Screen Rendering
,Network Requests
.However, I only see data in the
Overview
andNetwork Requests
tabs.Could you please advise on how to fix this?
Actual Result
In the Sentry web page, after I click on
Mobile
in the left-hand-panel, I only see data in theOverview
andNetwork Requests
tabs.The text was updated successfully, but these errors were encountered: