Content-Length: 306576 | pFad | http://github.com/getsentry/sentry-javascript/pull/15821

E8 feat(browser): Add `diagnoseSdkConnectivity()` function to programmatically detect possible connectivity issues by lforst · Pull Request #15821 · getsentry/sentry-javascript · GitHub
Skip to content
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

feat(browser): Add diagnoseSdkConnectivity() function to programmatically detect possible connectivity issues #15821

Merged
merged 10 commits into from
Mar 25, 2025

Conversation

lforst
Copy link
Member

@lforst lforst commented Mar 25, 2025

Resolves #15780

Adds a function diagnoseSdkConnectivity that will resolve to various "error codes" for possible reasons why events might not land in Sentry.

Originally I wanted to add an API to detect ad blockers so we can show a notification in the example pages that the wizard creates. Then I quickly thought of a different case why the SDK might not send data so I extended the API to also detect if the SDK wasn't initialized yet. We can extend this function at any point if we come up with more cases.

@lforst lforst changed the title feat(browser): Add diagnoseSdk() function to programmatically detect possible issues feat(browser): Add diagnoseSdkConnectivity() function to programmatically detect possible connectivity issues Mar 25, 2025
@lforst lforst merged commit 2e26182 into develop Mar 25, 2025
117 of 118 checks passed
@lforst lforst deleted the lforst-diagnose-sdk-api branch March 25, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add isProbablyUsingAdBlock()
2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/getsentry/sentry-javascript/pull/15821

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy