File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/tracing/src/browser Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -150,12 +150,10 @@ export class MetricsInstrumentation {
150
150
const oldValue = this . _measurements [ name ] . value ;
151
151
const measurementTimestamp = timeOrigin + msToSec ( oldValue ) ;
152
152
// normalizedValue should be in milliseconds
153
- const normalizedValue = ( measurementTimestamp - transaction . startTimestamp ) * 1000 ;
153
+ const normalizedValue = Math . abs ( ( measurementTimestamp - transaction . startTimestamp ) * 1000 ) ;
154
154
155
155
const delta = normalizedValue - oldValue ;
156
- logger . log (
157
- `[Measurements] Normalized ${ name } from ${ this . _measurements [ name ] . value } to ${ normalizedValue } (${ delta } )` ,
158
- ) ;
156
+ logger . log ( `[Measurements] Normalized ${ name } from ${ oldValue } to ${ normalizedValue } (${ delta } )` ) ;
159
157
160
158
this . _measurements [ name ] . value = normalizedValue ;
161
159
} ) ;
You can’t perform that action at this time.
0 commit comments