Change client metrics api path to client_perf (#26985)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
6c674c7331
Коммит
f0121d4f23
@@ -1140,7 +1140,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "time_to_first_byte",
|
||||
Help: "Duration from when a browser starts to request a page from a server until when it starts to receive data in response (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientTimeToFirstByte)
|
||||
|
||||
@@ -1151,7 +1151,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "first_contentful_paint",
|
||||
Help: "Duration of how long it takes for any content to be displayed on screen to a user (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientFirstContentfulPaint)
|
||||
|
||||
@@ -1162,7 +1162,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "largest_contentful_paint",
|
||||
Help: "Duration of how long it takes for large content to be displayed on screen to a user (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientLargestContentfulPaint)
|
||||
|
||||
@@ -1173,7 +1173,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "interaction_to_next_paint",
|
||||
Help: "Measure of how long it takes for a user to see the effects of clicking with a mouse, tapping with a touchscreen, or pressing a key on the keyboard (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientInteractionToNextPaint)
|
||||
|
||||
@@ -1184,7 +1184,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "cumulative_layout_shift",
|
||||
Help: "Measure of how much a page's content shifts unexpectedly",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientCumulativeLayoutShift)
|
||||
|
||||
@@ -1195,7 +1195,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "long_tasks",
|
||||
Help: "Counter of the number of times that the browser's main UI thread is blocked for more than 50ms by a single task",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientLongTasks)
|
||||
|
||||
@@ -1206,7 +1206,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "channel_switch",
|
||||
Help: "Duration of the time taken from when a user clicks on a channel in the LHS to when posts in that channel become visible (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientChannelSwitchDuration)
|
||||
|
||||
@@ -1217,7 +1217,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "team_switch",
|
||||
Help: "Duration of the time taken from when a user clicks on a team in the LHS to when posts in that team become visible (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientTeamSwitchDuration)
|
||||
|
||||
@@ -1228,7 +1228,7 @@ func New(ps *platform.PlatformService, driver, dataSource string) *MetricsInterf
|
||||
Name: "rhs_load",
|
||||
Help: "Duration of the time taken from when a user clicks to open a thread in the RHS until when posts in that thread become visible (milliseconds)",
|
||||
},
|
||||
[]string{"platform", "user_agent"},
|
||||
[]string{"platform", "agent"},
|
||||
)
|
||||
m.Registry.MustRegister(m.ClientRHSLoadDuration)
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user