diff --git a/packages/plugins/sentry/server/middlewares/sentry.js b/packages/plugins/sentry/server/middlewares/sentry.js index 5fb6a8e4fb..1d62a12744 100644 --- a/packages/plugins/sentry/server/middlewares/sentry.js +++ b/packages/plugins/sentry/server/middlewares/sentry.js @@ -28,7 +28,7 @@ module.exports = ({ strapi }) => { }); // Manually add transaction name - scope.setTag('transaction', `${ctx.method} ${ctx.request.url}`); + scope.setTag('transaction', `${ctx.method} ${ctx._matchedRoute}`); // Manually add Strapi version scope.setTag('strapi_version', strapi.config.info.strapi); scope.setTag('method', ctx.method);