Versions in this module Expand all Collapse all v0 v0.11.0 Aug 25, 2020 v0.10.1 Aug 14, 2020 Changes in this version + const ReadBytesKey + const ReadErrorKey + const ReadEvents + const RequestContentLength + const RequestCount + const ResponseContentLength + const ServerLatency + const WriteErrorKey + const WriteEvents + const WroteBytesKey + func NewHandler(handler http.Handler, operation string, opts ...Option) http.Handler + func WithRouteTag(route string, h http.Handler) http.Handler + type Config struct + Filters []Filter + Meter metric.Meter + Propagators propagation.Propagators + ReadEvent bool + SpanNameFormatter func(string, *http.Request) string + SpanStartOptions []trace.StartOption + Tracer trace.Tracer + WriteEvent bool + func NewConfig(opts ...Option) *Config + type Filter func(*http.Request) bool + type Handler struct + func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Option interface + Apply func(*Config) + func WithFilter(f Filter) Option + func WithMessageEvents(events ...event) Option + func WithMeter(meter metric.Meter) Option + func WithPropagators(ps propagation.Propagators) Option + func WithPublicEndpoint() Option + func WithSpanNameFormatter(f func(operation string, r *http.Request) string) Option + func WithSpanOptions(opts ...trace.StartOption) Option + func WithTracer(tracer trace.Tracer) Option + type OptionFunc func(*Config) + func (o OptionFunc) Apply(c *Config) + type Transport struct + func NewTransport(base http.RoundTripper, opts ...Option) *Transport + func (t *Transport) RoundTrip(r *http.Request) (*http.Response, error)