-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Release health sessions not sent when using a direct client #14804
Comments
Hello, |
@s1gr1d In our case Sentry is initialized in the service worker of a browser extension. I think @rodolfoBee also reproduced the issue but now sure how he tested. |
The The SDK checks if |
Thanks for this information! I'll look into this. |
Hi @s1gr1d ! Do you have an update on this ticket? |
Hello, not so far as I was busy with other things during the holiday break. I will take a look this week and give you an update. |
I think I figured it out. So basically previously we didn't support session tracking for client-based setups at all. We then extracted the logic from All of this is obviously suboptimal - we'll look into fixing it. |
Hi @lforst, Thank you for you answer! Setting a client at a global scope using I will still try to do that until we would have a fix. |
@ionutholbia Thanks for the background! Can I ask for the exact outcome you have with the API? Also, would you mind elaborating how your setup looks like with the different projects? I don't think I fully comprehended it yet. The fix I have in mind is probably that for every client on the page that has the |
Basically our browser extension has two different functionalities that are more or less independent. We want to have two different Sentry Projects (2 DSNs) for these two functionalities. To implement this we will use 2 clients. Here is a snippet of the code. Current as a workaround for sessions we are setting only one client as current scope. IMO your proposed solution should work for us.
|
Okay that tracks. Thanks for clarifying! |
Hi @lforst, |
no updates |
Hello, |
Hi, there are no updates. Also, and please don't take this the wrong way, it is entirely meant as a heads up: I recommend not asking for updates on issues unless they were obviously forgotten about. This issue is on our backlog but is currently not a priority. "Update comments" create noise for us that we have to filter out and slow us down which is in no one's interest. In the meantime, I want to encourage you to propose and contribute a solution - we are open to accepting them. Thanks and hope you understand! |
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
"@sentry/browser": "^8.47.0"
Framework Version
No response
Link to Sentry event
No response
Reproduction Example/SDK Setup
Steps to Reproduce
Expected Result
The SDK sends release health sessions to Sentry to track release health and adoption on the Releases page.
Actual Result
No release session event is sent to Sentry.
Explicitly setting the
browserSessionIntegration
integration and/orautoSessionTracking
have no effect on the result, this should also be automatic when a release version is set in the init as per:The text was updated successfully, but these errors were encountered: