Package + Version
Version:
Description
Using express routers a middlewares, sentry create a transaction name including only the path in the last router.
Here is an example:
constexpress=require('express');constSentry=require('@sentry/node');constapp=express();Sentry.init({dsn: 'secret'});constsubRouter=express.Router();subRouter.get('throw-new-error',(req,res)=>{thrownewError('An error');});app.use(Sentry.Handlers.requestHandler());app.use('/sub',subRouter);app.use(Sentry.Handlers.errorHandler());app.listen(3000,function(){console.log('Example app listening on port 3000!');});So here, when I GET /sub/throw-new-error, the transaction name will be GET|/throw-new-error instead of GET|/sub/throw-new-error.
Package + Version
@sentry/browser@sentry/noderaven-jsraven-node(raven for node)Version:
Description
Using express routers a middlewares, sentry create a transaction name including only the path in the last router.
Here is an example:
So here, when I GET
/sub/throw-new-error, the transaction name will beGET|/throw-new-errorinstead ofGET|/sub/throw-new-error.