Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("armory-http", fx.Provide(func(params authenticatedHTTPClientParameters) *http.Client { return NewAuthenticatedHTTPClient(params.Identity, params.Tracing) }), )
Functions ¶
func NewAuthenticatedHTTPClient ¶
func NewAuthenticatedHTTPClient(supplier tokenSupplier, tracingConfig opentelemetry.Configuration) *http.Client
NewAuthenticatedHTTPClient creates an http.Client that propagates OpenTelemetry trace headers and authenticates its requests with a bearer token header.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.