Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("armory-http", fx.Provide(NewAuthenticatedHTTPClient), )
Functions ¶
func NewAuthenticatedHTTPClient ¶
func NewAuthenticatedHTTPClient(params AuthenticatedClientParameters) *http.Client
NewAuthenticatedHTTPClient creates an http.Client that propagates OpenTelemetry trace headers and authenticates its requests with a bearer token header.
Types ¶
type AuthenticatedClientParameters ¶
type AuthenticatedClientParameters struct { fx.In Identity *oidc.AccessTokenSupplier Tracing opentelemetry.Configuration `optional:"true"` }
Click to show internal directories.
Click to hide internal directories.