package
1.23.0-rc.1
Repository: https://github.com/seatgeek/dd-trace-go.git
Documentation: pkg.go.dev

# Functions

NewServeMux allocates and returns an http.ServeMux augmented with the global tracer.
NoDebugStack prevents stack traces from being attached to spans finishing with an error.
RTWithAnalytics enables Trace Analytics for all started spans.
RTWithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.
RTWithServiceName sets the given service name for the RoundTripper.
WithAfter adds a RoundTripperAfterFunc to the RoundTripper config.
WithAnalytics enables Trace Analytics for all started spans.
WithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.
WithBefore adds a RoundTripperBeforeFunc to the RoundTripper config.
WithServiceName sets the given service name for the returned ServeMux.
WithSpanOptions defines a set of additional ddtrace.StartSpanOption to be added to spans started by the integration.
WrapClient modifies the given client's transport to augment it with tracing and returns it.
WrapHandler wraps an http.Handler with tracing using the given service and resource.
WrapRoundTripper returns a new RoundTripper which traces all requests sent over the transport.

# Structs

ServeMux is an HTTP request multiplexer that traces all the incoming requests.

# Type aliases

MuxOption has been deprecated in favor of Option.
Option represents an option that can be passed to NewServeMux or WrapHandler.
A RoundTripperAfterFunc can be used to modify a span after an http RoundTrip is made.
A RoundTripperBeforeFunc can be used to modify a span before an http RoundTrip is made.
A RoundTripperOption represents an option that can be passed to WrapRoundTripper.