mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(aggregator) delete endTime from span + add starting slash in route name
This commit is contained in:
parent
e122c037d9
commit
c3b1814775
@ -198,6 +198,7 @@ var TransactionAggregator = module.exports = function (pushInteractor) {
|
||||
// compute duration of child spans
|
||||
trace.spans.forEach(function(span) {
|
||||
span.min = span.max = span.mean = Math.round(new Date(span.endTime) - new Date(span.startTime));
|
||||
delete span.endTime;
|
||||
})
|
||||
|
||||
// Calculate/Update mean
|
||||
@ -415,7 +416,7 @@ var TransactionAggregator = module.exports = function (pushInteractor) {
|
||||
|
||||
// create a copy without reference to stored one
|
||||
var routeCopy = {
|
||||
path: route_path + '',
|
||||
path: route_path === '/' ? '/' : '/' + route_path,
|
||||
meta: fclone(data.meta),
|
||||
variances: []
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user