Documentation
¶
Overview ¶
Package roundtripper provides a roundtripper for the SDK.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GovExtRoundTripper ¶
type GovExtRoundTripper struct {
// contains filtered or unexported fields
}
GovExtRoundTripper is a http.RoundTripper that injects the governor extension contexts as required to the outgoing request headers.
func NewGovExtRoundTripper ¶
func NewGovExtRoundTripper(base roundtrip, opts ...Option) *GovExtRoundTripper
NewGovExtRoundTripper returns a new GovExtRoundTripper.
type Option ¶
type Option func(*GovExtRoundTripper)
Option is a function that configures a GovExtRoundTripper.
func WithCorrelationID ¶
func WithCorrelationID() Option
WithCorrelationID injects the current correlation ID into the outgoing request headers.
func WithLogger ¶
WithLogger sets the logger for the GovExtRoundTripper.
func WithTraceContext ¶
func WithTraceContext() Option
WithTraceContext injects the current span context into the outgoing request headers.
Click to show internal directories.
Click to hide internal directories.