(aggregator) delete endTime from span + add starting slash in route name

This commit is contained in:
vmarchaud 2017-01-12 14:09:08 +01:00
parent e122c037d9
commit c3b1814775

View File

@ -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: []
}