Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TraceAndServe ¶
func TraceAndServe(h http.Handler, cfg *TraceConfig)
TraceAndServe will apply tracing to the given http.Handler using the passed tracer under the given service and resource.
Types ¶
type TraceConfig ¶ added in v1.35.4
type TraceConfig struct { ResponseWriter http.ResponseWriter // response writer Request *http.Request // request that is traced Service string // service name Resource string // resource name QueryParams bool // specifies that request query parameters should be appended to http.url tag FinishOpts []ddtrace.FinishOption // span finish options to be applied SpanOpts []ddtrace.StartSpanOption // additional span options to be applied }
TraceConfig defines the configuration for request tracing.
Click to show internal directories.
Click to hide internal directories.