strapi-plugin-sentry
does not include the tracing/performance functionality, but this can be added by adding a middelware with the code provided in the Strapi Koa documentation (https://docs.sentry.io/platforms/node/guides/koa/#monitor-performance).
Before beginning make sure that you installed strapi-plugin-sentry
and that it works (i.e. it logs the errors inside of the Sentry dashboard).
Create a middelware, but don't call it sentry
, because there may be a problem with the plugin. I called mine stracing
.
Inside of ./middlewares/stracing/index.js
:
const {