mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
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:
@@ -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"},
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user