Package + Version
Version:
Description
Since #2714 sentry no longer uses req.route.path for transaction names, which causes route paramter values to be logged rather than route parameter names
constexpress=require('express');constSentry=require('@sentry/node');constapp=express();Sentry.init({dsn: 'secret'});constsubRouter=express.Router();subRouter.get('/throw-new-error/:example',(req,res)=>{thrownewError('An '+req.params.example+' 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!');});wget http://localhost:3000/sub/throw-new-error/my-error-type
Transaction as reported using @sentry/node@5.18.1: GET|/throw-new-error/:example
Transaction as reported using @sentry/node@5.19.0 (or higher): GET /sub/throw-new-error/my-error-type
Package + Version
@sentry/browser@sentry/noderaven-jsraven-node(raven for node)Version:
Description
Since #2714 sentry no longer uses
req.route.pathfor transaction names, which causes route paramter values to be logged rather than route parameter nameswget http://localhost:3000/sub/throw-new-error/my-error-typeTransaction as reported using
@sentry/node@5.18.1:GET|/throw-new-error/:exampleTransaction as reported using
@sentry/node@5.19.0(or higher):GET /sub/throw-new-error/my-error-type