You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sentry captures data by using an SDK within your application's runtime.
32
41
@@ -70,7 +79,6 @@ To set up the Sentry SDK, register the Sentry integration and initialize the SDK
70
79
71
80
### Astro Integration Setup
72
81
73
-
74
82
```javascript {filename:astro.config.mjs}
75
83
import { defineConfig } from"astro/config";
76
84
importsentryfrom"@sentry/astro";
@@ -89,8 +97,12 @@ export default defineConfig({
89
97
```
90
98
91
99
<Alertlevel="warning">
92
-
Passing runtime-specific configuration options (`dsn`, `release`, `environment`, `sampleRate`, `tracesSampleRate`, `replaysSessionSampleRate`, `replaysOnErrorSampleRate`) to the Sentry integration will be deprecated in future versions.
93
-
We recommend passing your configuration directly to the respective `Sentry.init()` calls in `sentry.client.config.js` and `sentry.server.config.js` instead.
To view and resolve the recorded error, log into [sentry.io](https://sentry.io) and select your project. Clicking on the error's title will open a page where you can see detailed information and mark it as resolved.
@@ -245,7 +257,7 @@ export default defineConfig({
245
257
246
258
<Alert>
247
259
248
-
Auto instrumentation only works for Astro 3.5.2 or newer. If you're using an older version, you need to [manually add the Sentry middleware](#manually-add-server-instrumentation) instead.
260
+
Auto instrumentation only works for Astro 3.5.2 or newer. If you're using an older version, you need to [manually add the Sentry middleware](#manually-add-server-instrumentation) instead.
This SDK uses Ember configuration conventions to manage its automatic instrumentation and other Sentry options. This additional configuration can be found under <PlatformLinkto="/configuration/ember-options/">Ember options</PlatformLink>.
107
+
This SDK uses Ember configuration conventions to manage its automatic instrumentation and other Sentry options. This additional configuration can be found under <PlatformLinkto="/configuration/ember-options/">Ember options</PlatformLink>.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/nextjs/index.mdx
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,13 @@ In addition to capturing errors, you can monitor interactions between multiple s
20
20
Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/nextjs/manual-setup.mdx
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ Sentry.init({
151
151
// ___PRODUCT_OPTION_START___ logs
152
152
153
153
// Enable logs to be sent to Sentry
154
-
_experiments: { enableLogs:true },
154
+
enableLogs:true,
155
155
// ___PRODUCT_OPTION_END___ logs
156
156
// Note: if you want to override the automatic release value, do not set a
157
157
// `release` value here - use the environment variable `SENTRY_RELEASE`, so
@@ -184,7 +184,7 @@ Sentry.init({
184
184
// ___PRODUCT_OPTION_START___ logs
185
185
186
186
// Enable logs to be sent to Sentry
187
-
_experiments: { enableLogs:true },
187
+
enableLogs:true,
188
188
// ___PRODUCT_OPTION_END___ logs
189
189
190
190
// ...
@@ -216,7 +216,7 @@ Sentry.init({
216
216
// ___PRODUCT_OPTION_START___ logs
217
217
218
218
// Enable logs to be sent to Sentry
219
-
_experiments: { enableLogs:true },
219
+
enableLogs:true,
220
220
// ___PRODUCT_OPTION_END___ logs
221
221
222
222
// ...
@@ -459,6 +459,7 @@ Make sure to keep your auth token secret and out of version control.
459
459
You can prevent ad blockers from blocking Sentry events using tunneling. Use the `tunnelRoute` option to add an API endpoint in your application that forwards Sentry events to Sentry servers.
460
460
461
461
For better ad-blocker evasion, you can either:
462
+
462
463
- Set `tunnelRoute: true` to automatically generate a random tunnel route for each build, making it harder for ad-blockers to detect and block monitoring requests
463
464
- Set `tunnelRoute: "/my-tunnel-route"` to use a static route of your choosing
<Expandablelevel="warning"title="Using Next.js middleware on Turbopack">
484
-
If you're using Turbopack, client-side event recording will fail if your Next.js middleware intercepts the configured tunnel route. To fix this, set the route to a fixed string (like `/error-monitoring`) and add a negative matcher like `(?!error-monitoring)` in your middleware to exclude the tunnel route.
485
-
486
-
If you're not using Turbopack, Sentry will automatically skip the tunnel route in your middleware.
485
+
If you're using Turbopack, client-side event recording will fail if your
486
+
Next.js middleware intercepts the configured tunnel route. To fix this, set
487
+
the route to a fixed string (like `/error-monitoring`) and add a negative
488
+
matcher like `(?!error-monitoring)` in your middleware to exclude the tunnel
489
+
route. If you're not using Turbopack, Sentry will automatically skip the
0 commit comments