Documentation ¶
Overview ¶
Package otelmacaron instruments gopkg.in/macaron.v1.
Currently only the routing of a received message can be instrumented. To do it, use the Middleware function.
Index ¶
Constants ¶
View Source
const ScopeName = "go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron"
ScopeName is the instrumentation scope name.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware returns a macaron Handler to trace requests to the server.
func SemVersion
deprecated
Types ¶
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
Option applies an option value for a config.
func WithPropagators ¶
func WithPropagators(p propagation.TextMapPropagator) Option
WithPropagators returns an Option to use the Propagators when extracting and injecting trace context from HTTP requests.
func WithTracerProvider ¶
func WithTracerProvider(tp trace.TracerProvider) Option
WithTracerProvider returns an Option to use the TracerProvider when creating a Tracer.
Click to show internal directories.
Click to hide internal directories.