File tree 2 files changed +6
-3
lines changed
static/app/views/performance/newTraceDetails
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,12 @@ export function TraceContextVitals({tree}: Props) {
42
42
}
43
43
44
44
const colors = theme . charts . getColorPalette ( 3 ) ;
45
- const score = Math . round ( vital . score * 100 ) ;
46
45
47
46
return (
48
47
< VitalMeter
49
48
key = { vital . key }
50
49
webVital = { vital . key as WebVitals }
51
- score = { score }
50
+ score = { vital . score }
52
51
meterValue = { vital . measurement . value }
53
52
showTooltip
54
53
color = { colors [ index ] }
Original file line number Diff line number Diff line change @@ -125,7 +125,11 @@ export function collectTraceMeasurements(
125
125
WEB_VITALS_LOOKUP . has ( measurement ) && vital_types . add ( 'web' ) ;
126
126
MOBILE_VITALS_LOOKUP . has ( measurement ) && vital_types . add ( 'mobile' ) ;
127
127
128
- const score = measurements [ `score.${ measurement } ` ] ?. value ;
128
+ const score = Math . round (
129
+ ( measurements [ `score.${ measurement } ` ] ?. value /
130
+ measurements [ `score.weight.${ measurement } ` ] ?. value ) *
131
+ 100
132
+ ) ;
129
133
130
134
const vital = vitals . get ( node ) ! ;
131
135
vital . push ( {
You can’t perform that action at this time.
0 commit comments