mirror of
https://github.com/netbirdio/management-integrations.git
synced 2026-05-22 17:09:23 -07:00
add metrics to event store constructor
This commit is contained in:
@@ -4,10 +4,12 @@ import (
|
||||
"context"
|
||||
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/netbirdio/netbird/management/server/store"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"go.opentelemetry.io/otel/metric"
|
||||
|
||||
"github.com/netbirdio/netbird/management/server/store"
|
||||
"github.com/netbirdio/netbird/management/server/telemetry"
|
||||
|
||||
"github.com/netbirdio/netbird/management/server/account"
|
||||
"github.com/netbirdio/netbird/management/server/activity"
|
||||
"github.com/netbirdio/netbird/management/server/activity/sqlite"
|
||||
@@ -33,7 +35,7 @@ func RegisterHandlers(
|
||||
return router, nil
|
||||
}
|
||||
|
||||
func InitEventStore(ctx context.Context, dataDir string, key string) (activity.Store, string, error) {
|
||||
func InitEventStore(ctx context.Context, dataDir string, key string, _ telemetry.AppMetrics) (activity.Store, string, error) {
|
||||
var err error
|
||||
if key == "" {
|
||||
log.Debugf("generate new activity store encryption key")
|
||||
|
||||
Reference in New Issue
Block a user