add trace starts for each object type

This commit is contained in:
Mike Mason
2023-07-21 18:11:34 +00:00
parent c27e50ea0b
commit be1b480968
6 changed files with 75 additions and 0 deletions

View File

@@ -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,