ensure otel tracing is passed through all event handlers and clients
This commit is contained in:
@@ -13,6 +13,7 @@ import (
|
||||
|
||||
"github.com/labstack/echo/v4"
|
||||
"go.infratographer.com/x/gidx"
|
||||
"go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp"
|
||||
"go.uber.org/zap"
|
||||
)
|
||||
|
||||
@@ -32,7 +33,8 @@ const (
|
||||
|
||||
// DefaultHTTPClient is the default HTTP client for the Permissions Client.
|
||||
var DefaultHTTPClient = &http.Client{
|
||||
Timeout: defaultHTTPClientTimeout,
|
||||
Timeout: defaultHTTPClientTimeout,
|
||||
Transport: otelhttp.NewTransport(http.DefaultTransport),
|
||||
}
|
||||
|
||||
// Client defines the Permissions API client interface.
|
||||
|
||||
Reference in New Issue
Block a user