-
-
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
[ReactNavigationInstrumentation] Will not send transactiondue to beforeNavigate on react navigation v5 #4109
Comments
Hey @Lerosen! 👋 Since I'm not a seasoned contributor, please consider my advice as my personal take at your issue. I've compared your configuration to the documented reference (and also cross-checked the examples here, since you're using TLDR: I assume that you run into a state-change timeout. You could try setting Long version: Here is my shot at what's happening:
[ReactNavigationInstrumentation] Will not send transaction [...] due to beforeNavigate. and found it here, which gave me a clue that
Its description being the following:
the description above plus an explanation
resulting in
|
Thank you for taking the time to look into this and for your detailed answer. But the timeout is not the problem, it is triggered much later, way after the log I also checked the context in the If I override it as follows
i get the efollowing log
which indicates that there may be a problem with the "idle transaction" not getting created correctly or removed too early or something else 😨
|
Thank you for providing additional context!
Hmm, good point. I'm currently on my mobile, I will look into it further once I've access to my Mac again. 😅 Update: It looks like the log LOG Sentry Logger [log]: [Tracing] Discarding transaction because its trace was not chosen to be sampled.
is from here. Given that if you override Regarding Do you actually mind sharing your |
Hi and thank you for opening this issue! |
As I said, it is discarded right away. Sry, I missed your reply. |
Hi @Lerosen, From the logs sadly I don't see why this would happen. Would you be able to debug the linked code or share a reproducible sample app with us, so we can debug this? |
This issue has gone three weeks without activity. In another week, I will close it. But! If you comment or otherwise update it, I will reset the clock, and if you remove the label "A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀 |
I started setting up a reproduction in an expo snack but had no time to finish it yet. |
Closing this due to inactivity. If this is still an issue feel free to comment here or open a new issue if the context changed. |
OS:
Platform:
SDK:
@sentry/react-native
(>= 1.0.0)react-native-sentry
(<= 0.43.2)SDK version: 5.32.0
react-native
version: 0.74.3Are you using Expo?
Are you using sentry.io or on-premise?
If you are using sentry.io, please post a link to your issue so we can take a look:
[Link to issue]
Configuration:
(
@sentry/react-native
)I have the following issue:
I am using Sentry with ReactNavigation v5 ("@react-navigation/native": "^5.9.8").
I set up the screen tracing instrumentation as documented. For debugging purposes I also added my own logging of routing events.
The issue that I don't get any Screen load events. THe log indicated that all navigation events are correctly detected but each transaction is discarded because the sample property is false. I tried to find the cause for this but had no luck so far. I don't have any beforeNavigate handler configured.
Steps to reproduce:
Actual result:
Expected result:
The transaction should not be discarded but send.
The text was updated successfully, but these errors were encountered: