openreplay/backend/pkg/metrics/web/metrics.go
Alexander 3b3e95a413
Observability upgrade (#3146)
* feat(metrics): grand update

* feat(metrics): fixed missing part in ee tracer

* feat(assets): added missing arg

* feat(metrics): fixed naming problems
2025-03-13 08:09:29 +01:00

21 lines
722 B
Go

package web
import (
"github.com/prometheus/client_golang/prometheus"
)
type Web interface {
RecordRequestSize(size float64, url string, code int)
RecordRequestDuration(durMillis float64, url string, code int)
IncreaseTotalRequests()
List() []prometheus.Collector
}
type webImpl struct{}
func New(serviceName string) Web { return &webImpl{} }
func (w *webImpl) List() []prometheus.Collector { return []prometheus.Collector{} }
func (w *webImpl) RecordRequestSize(size float64, url string, code int) {}
func (w *webImpl) RecordRequestDuration(durMillis float64, url string, code int) {}
func (w *webImpl) IncreaseTotalRequests() {}