ensure otel tracing is passed through all event handlers and clients
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"go.infratographer.com/x/otelx"
|
||||
"go.infratographer.com/x/versionx"
|
||||
"go.infratographer.com/x/viperx"
|
||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||
|
||||
"go.equinixmetal.net/infra9-metal-bridge/internal/config"
|
||||
"go.equinixmetal.net/infra9-metal-bridge/internal/metal"
|
||||
@@ -68,6 +69,7 @@ func serve(cmd *cobra.Command, _ []string) {
|
||||
}
|
||||
|
||||
permHTTPClient = oauth2x.NewClient(cmd.Context(), tokenSrc)
|
||||
permHTTPClient.Transport = otelhttp.NewTransport(permHTTPClient.Transport)
|
||||
}
|
||||
|
||||
perms, err := permissions.NewClient("",
|
||||
|
||||
Reference in New Issue
Block a user