Authored by 姜枫

report req route path in transation

... ... @@ -169,9 +169,13 @@ function groupTransactions (transactions) {
var durations = groups[key].map(function (trans) {
return trans.duration()
})
var route = trans.req.route ? trans.req.route.path : '';
return {
transaction: trans.name,
data: trans.req ? (trans.req.query || trans.req.body) : {},
route: route,
method: trans.req ? trans.req.method : '',
path: trans.req ? trans.req.path : '',
uuid: trans._uuid,
... ...