mirror of
https://github.com/strapi/strapi.git
synced 2025-12-26 22:54:31 +00:00
Use ctx._matchedRoute instead of ctx.request.url for Sentry transaction name
This commit is contained in:
parent
86e57e17f4
commit
acd12eaab7
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user