Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHTTPClient ¶
NewHTTPClient creates an http.Client with OpenTelemetry instrumentation. This wrapper centralizes tracing configuration for outbound HTTP calls, allowing future additions like custom options or sampling without changing callers.
func WrapTransport ¶
func WrapTransport(transport http.RoundTripper) http.RoundTripper
WrapTransport wraps an http.RoundTripper with OpenTelemetry instrumentation. If transport is nil, http.DefaultTransport is used. This wrapper centralizes tracing configuration for outbound HTTP calls, allowing future additions like custom options or sampling without changing callers.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
func (*Component) RegisterHttpHandlers ¶
Click to show internal directories.
Click to hide internal directories.