[MM-31132] app/server: add pprof endpoint (#17001)
* app/server: add pprof endpoint * reflect review comments * make metrics link conditional * app/server: add metrics server setup to licence listeners * refactor a bit * trigger CI Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
5cb5f0a60a
Коммит
f31a9ed1a8
@@ -8,8 +8,7 @@ import (
|
||||
)
|
||||
|
||||
type MetricsInterface interface {
|
||||
StartServer()
|
||||
StopServer()
|
||||
Register()
|
||||
|
||||
IncrementPostCreate()
|
||||
IncrementWebhookPost()
|
||||
|
||||
@@ -260,12 +260,7 @@ func (_m *MetricsInterface) ObserveStoreMethodDuration(method string, success st
|
||||
_m.Called(method, success, elapsed)
|
||||
}
|
||||
|
||||
// StartServer provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) StartServer() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
// StopServer provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) StopServer() {
|
||||
// Register provides a mock function with given fields:
|
||||
func (_m *MetricsInterface) Register() {
|
||||
_m.Called()
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user