Documentation
¶
Index ¶
Constants ¶
View Source
const ComponentName = instrumentation.PackageNetHTTP
Variables ¶
View Source
var Instrumentation *instrumentation.Instrumentation
Functions ¶
This section is empty.
Types ¶
type CommonConfig ¶
type Config ¶
type Config struct { CommonConfig FinishOpts []tracer.FinishOption HeaderTags instrumentation.HeaderTags IsStatusError func(int) bool }
func Default ¶
func Default(instr *instrumentation.Instrumentation) *Config
type HandlerOptionFn ¶
type HandlerOptionFn func(*Config)
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option describes options for http.ServeMux.
type OptionFn ¶
type OptionFn func(*CommonConfig)
OptionFn represents options applicable to NewServeMux and WrapHandler.
type RoundTripperAfterFunc ¶
A RoundTripperAfterFunc can be used to modify a span after an http RoundTrip is made. It is possible for the http Response to be nil.
type RoundTripperBeforeFunc ¶
A RoundTripperBeforeFunc can be used to modify a span before an http RoundTrip is made.
type RoundTripperConfig ¶
type RoundTripperConfig struct { CommonConfig Before RoundTripperBeforeFunc After RoundTripperAfterFunc SpanNamer func(req *http.Request) string Propagation bool ErrCheck func(err error) bool QueryString bool // reports whether the query string is included in the URL tag for http client spans IsStatusError func(statusCode int) bool }
func (*RoundTripperConfig) ApplyOpts ¶
func (c *RoundTripperConfig) ApplyOpts(opts ...RoundTripperOption)
type RoundTripperOption ¶
type RoundTripperOption interface {
// contains filtered or unexported methods
}
RoundTripperOption describes options for http.RoundTripper.
type RoundTripperOptionFn ¶
type RoundTripperOptionFn func(*RoundTripperConfig)
RoundTripperOptionFn represents options applicable to WrapClient and WrapRoundTripper.
Click to show internal directories.
Click to hide internal directories.