Nitro Server Features
Learn which Nitro server features are automatically instrumented by the Sentry Nuxt SDK.
The Sentry Nuxt SDK automatically instruments various Nitro server APIs to provide performance monitoring and error tracking for your server-side code.
Available since: v10.17.0
The Sentry Nuxt SDK automatically instruments server middleware handlers in addition to server event handlers. This includes the handler functions and their onBeforeResponse and onRequest callbacks.
Available since: v10.21.0
The Sentry Nuxt SDK automatically instruments cache APIs for the following Nitro functions:
defineCachedEventHandlercachedEventHandlercachedFunction
This provides spans in your transactions that represent cache operations and their durations, including cache hits.
Available since: v10.21.0
The Sentry Nuxt SDK automatically instruments storage APIs (also known as KV storage) and common operations.
Keep in mind that only the storage mounts configured under nitro.storage in your nuxt.config.ts will be instrumented. Storage spans will show up in a similar way to cache spans since they both utilize the same underlying Nitro storage API.
Available since: v10.21.0
The Sentry Nuxt SDK automatically instruments Nitro's database API. This provides spans in your transactions that represent database query operations and their durations, enabling you to identify slow queries, track query frequency, and optimize your database interactions.
Database instrumentation only applies to database mounts configured under nitro.database in your nuxt.config.ts and only when nitro.experimental.database is set to true.
Our documentation is open source and available on GitHub. Your contributions are welcome, whether fixing a typo (drat!) or suggesting an update ("yeah, this would be better").