Documentation
¶
Overview ¶
Package httprouter provides functions to trace the julienschmidt/httprouter package (https://github.com/julienschmidt/httprouter).
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
var WithAnalytics = tracing.WithAnalytics
WithAnalytics enables Trace Analytics for all started spans.
var WithAnalyticsRate = tracing.WithAnalyticsRate
WithAnalyticsRate sets the sampling rate for Trace Analytics events correlated to started spans.
var WithHeaderTags = tracing.WithHeaderTags
WithHeaderTags enables the integration to attach HTTP request headers as span tags. Warning: Using this feature can risk exposing sensitive data such as authorization tokens to Datadog. Special headers can not be sub-selected. E.g., an entire Cookie header would be transmitted, without the ability to choose specific Cookies.
var WithServiceName = tracing.WithServiceName
WithServiceName sets the given service name for the returned router.
var WithSpanOptions = tracing.WithSpanOptions
WithSpanOptions applies the given set of options to the span started by the router.
Functions ¶
This section is empty.
Types ¶
type Router ¶
type Router struct { *httprouter.Router // contains filtered or unexported fields }
Router is a traced version of httprouter.Router.
type RouterOption ¶
RouterOption represents an option that can be passed to New.