mirror of
https://github.com/php/frankenphp.git
synced 2026-03-24 00:52:11 +01:00
reset
This commit is contained in:
12
metrics.go
12
metrics.go
@@ -380,9 +380,9 @@ func (m *PrometheusMetrics) Shutdown() {
|
||||
}
|
||||
|
||||
if err := m.registry.Register(m.queueDepth); err != nil &&
|
||||
!errors.As(err, &prometheus.AlreadyRegisteredError{}) {
|
||||
panic(err)
|
||||
}
|
||||
!errors.As(err, &prometheus.AlreadyRegisteredError{}) {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
|
||||
func getWorkerNameForMetrics(name string) string {
|
||||
@@ -432,9 +432,9 @@ func NewPrometheusMetrics(registry prometheus.Registerer) *PrometheusMetrics {
|
||||
}
|
||||
|
||||
if err := m.registry.Register(m.queueDepth); err != nil &&
|
||||
!errors.As(err, &prometheus.AlreadyRegisteredError{}) {
|
||||
panic(err)
|
||||
}
|
||||
!errors.As(err, &prometheus.AlreadyRegisteredError{}) {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return m
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user