mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 21:07:31 +00:00
chore: update dependencies (#5401)
* chore(backend): update dependencies * chore(pipeline): update golangci-lint
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
"go.opentelemetry.io/otel/attribute"
|
||||
"go.opentelemetry.io/otel/metric"
|
||||
"go.opentelemetry.io/otel/metric/instrument"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -22,8 +23,8 @@ type Metrics interface {
|
||||
GetMetricsProvider() metric.MeterProvider
|
||||
RegisterCounter(name, description string) error
|
||||
AddCount(ctx context.Context, name string, value int64, labels map[string]attribute.Value) error
|
||||
RegisterUpDownSumObserver(name, description string, callbackFunc metric.Int64ObserverFunc) error
|
||||
RegisterValueObserver(name, description string, callbackFunc metric.Int64ObserverFunc) error
|
||||
RegisterUpDownSumObserver(name, description string, callbackFunc instrument.Int64Callback) error
|
||||
RegisterValueObserver(name, description string, callbackFunc instrument.Int64Callback) error
|
||||
}
|
||||
|
||||
var M Metrics
|
||||
@@ -56,14 +57,14 @@ func AddCount(ctx context.Context, name string, value int64, labels map[string]a
|
||||
return M.AddCount(ctx, name, value, labels)
|
||||
}
|
||||
|
||||
func RegisterUpDownSumObserver(name, description string, callbackFunc metric.Int64ObserverFunc) error {
|
||||
func RegisterUpDownSumObserver(name, description string, callbackFunc instrument.Int64Callback) error {
|
||||
if M == nil {
|
||||
return nil
|
||||
}
|
||||
return M.RegisterUpDownSumObserver(name, description, callbackFunc)
|
||||
}
|
||||
|
||||
func RegisterValueObserver(name, description string, callbackFunc metric.Int64ObserverFunc) error {
|
||||
func RegisterValueObserver(name, description string, callbackFunc instrument.Int64Callback) error {
|
||||
if M == nil {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user