Skip to content

Commit cbb35e4

Browse files
Luca Forstnercoolguyzone
andauthored
Add a troubleshooting section for when the SDK doesn't appear to be sending any data (#11818)
* Add a troubleshooting section for when the SDK appears not to be sending any data * Update docs/platforms/javascript/common/troubleshooting/index.mdx Co-authored-by: Alex Krawiec <[email protected]> * Update docs/platforms/javascript/common/troubleshooting/index.mdx Co-authored-by: Alex Krawiec <[email protected]> --------- Co-authored-by: Alex Krawiec <[email protected]>
1 parent 262b86b commit cbb35e4

File tree

1 file changed

+14
-0
lines changed
  • docs/platforms/javascript/common/troubleshooting

1 file changed

+14
-0
lines changed

docs/platforms/javascript/common/troubleshooting/index.mdx

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,20 @@ notSupported: ["javascript.capacitor"]
66
sidebar_order: 9000
77
---
88

9+
<Expandable permalink title="The SDK is not sending any data">
10+
11+
If you set up the Sentry SDK and it's not sending any data to Sentry:
12+
13+
- Check that you have configured a DSN and that you are passing it to the `dsn` option in `Sentry.init()`.
14+
15+
If you are using environment variables to pass the DSN, make sure the environment variables are set in all relevant environments. Additionally, if you are using environment variables inside a framework, check that the framework will include the environment variables in your bundle. Often this means you will have to prefix your environment variables with special prefixes defined by your framework (`NEXT_PUBLIC_` in Next.js, `NUXT_` in Nuxt, `VITE_` for Vite projects, `REACT_APP_` for Create React App, ...).
16+
17+
- Check that you have disabled any ad-blockers.
18+
- Set `debug: true` in the `Sentry.init()` options and observe your console output when you start your application. The SDK may tell you why it is not sending any data.
19+
- Check the [Stats](https://sentry.io/orgredirect/organizations/:orgslug/stats/) and [Suscription](https://sentry.io/orgredirect/organizations/:orgslug/settings/billing/overview/) pages in Sentry. You may have ran out of quota.
20+
21+
</Expandable>
22+
923
<Expandable permalink title="Updating to a new Sentry SDK version">
1024

1125
If you update your Sentry SDK to a new major version, you might encounter breaking changes that need some adaption on your end.

0 commit comments

Comments
 (0)