add trace starts for each object type
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
|
||||
"go.infratographer.com/x/events"
|
||||
"go.infratographer.com/x/gidx"
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.uber.org/zap"
|
||||
|
||||
"go.equinixmetal.net/infra9-metal-bridge/internal/metal"
|
||||
@@ -22,6 +23,8 @@ const (
|
||||
TypeUser ObjectType = "user"
|
||||
)
|
||||
|
||||
var tracer = otel.Tracer("go.equinixmetal.net/infra9-metal-bridge/internal/service")
|
||||
|
||||
// DefaultPrefixMap is the default id prefix to type relationship.
|
||||
var DefaultPrefixMap = map[string]ObjectType{
|
||||
TypeOrganization.Prefix(): TypeOrganization,
|
||||
|
||||
Reference in New Issue
Block a user