package module
v0.50.0 Latest Latest

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: Apache-2.0 Imports: 8 Imported by: 3



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.



View Source
const ScopeName = "go.opentelemetry.io/contrib/instrumentation/gopkg.in/macaron.v1/otelmacaron"

ScopeName is the instrumentation scope name.


This section is empty.


func Middleware

func Middleware(service string, opts ...Option) macaron.Handler

Middleware returns a macaron Handler to trace requests to the server.

func SemVersion deprecated added in v0.24.0

func SemVersion() string

SemVersion is the semantic version to be supplied to tracer/meter creation.

Deprecated: Use Version instead.

func Version added in v0.24.0

func Version() string

Version is the current release version of the macron instrumentation.


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 added in v0.13.0

func WithTracerProvider(tp trace.TracerProvider) Option

WithTracerProvider returns an Option to use the TracerProvider when creating a Tracer.


Path Synopsis
example module
test module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL