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
In that case you can also skip the `sentry-cli` configuration step below.
244
245
246
+
### Automatically Instrument API Routes And Data Fetching Methods
247
+
248
+
_(New in version TODO)_
249
+
250
+
The SDK provides an option to automatcally instrument API routes and [Next.js Data Fetching Methods](https://nextjs.org/docs/basic-features/data-fetching/overview) with error and performance monitoring, removing the need to manually wrap API routes in `withSentry`.
251
+
252
+
```javascript {filename:next.config.js}
253
+
constmoduleExports= {
254
+
sentry: {
255
+
autoInstrumentServerFunctions:true,
256
+
},
257
+
};
258
+
```
259
+
245
260
### Use `hidden-source-map`
246
261
247
262
_(New in version 6.17.1, will default to `true` in 8.0.0 and beyond.)_
0 commit comments