MM-58367 Increase maximum bucket size for LCP metrics (#27147)

* MM-58367 Increase maximum bucket size for LCP metrics

* Don't potentially mutate DefBuckets

* Increase maximum bucket for FCP metrics too
This commit is contained in:
Harrison Healey
2024-05-27 16:46:24 -04:00
committed by GitHub
parent 2f7f00b256
commit beb8d5e8e0

View File

@@ -1152,6 +1152,9 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
Subsystem: MetricsSubsystemClientsWeb,
Name: "first_contentful_paint",
Help: "Duration of how long it takes for any content to be displayed on screen to a user (seconds)",
// Extend the range of buckets for this while we get a better idea of the expected range of this metric is
Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 15, 20},
},
[]string{"platform", "agent"},
)
@@ -1163,6 +1166,9 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
Subsystem: MetricsSubsystemClientsWeb,
Name: "largest_contentful_paint",
Help: "Duration of how long it takes for large content to be displayed on screen to a user (seconds)",
// Extend the range of buckets for this while we get a better idea of the expected range of this metric is
Buckets: []float64{.005, .01, .025, .05, .1, .25, .5, 1, 2.5, 5, 10, 15, 20},
},
[]string{"platform", "agent"},
)