openreplay/backend/pkg/metrics/assets/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

23 lines
815 B
Go

package assets
import (
"github.com/prometheus/client_golang/prometheus"
)
type Assets interface {
IncreaseProcessesSessions()
IncreaseSavedSessions()
RecordDownloadDuration(durMillis float64, code int)
RecordUploadDuration(durMillis float64, isFailed bool)
List() []prometheus.Collector
}
type assetsImpl struct{}
func New(serviceName string) Assets { return &assetsImpl{} }
func (a *assetsImpl) List() []prometheus.Collector { return []prometheus.Collector{} }
func (a *assetsImpl) IncreaseProcessesSessions() {}
func (a *assetsImpl) IncreaseSavedSessions() {}
func (a *assetsImpl) RecordDownloadDuration(durMillis float64, code int) {}
func (a *assetsImpl) RecordUploadDuration(durMillis float64, isFailed bool) {}