mux

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(opts ...Option) trace.TracerProvider

NewHandler should be used with github.com/gorilla/mux.

func SpanNameFormatter

func SpanNameFormatter(routeName string, r *http.Request) string

SpanNameFormatter should be used with [otelmux.WithSpanNameFormatter] because the default formatter only outputs the route without the http method.

Types

type Option

type Option func(*options)

func WithOperationName

func WithOperationName(name string) Option

func WithTracerProvider

func WithTracerProvider(tracerProvider trace.TracerProvider) Option

Jump to

Keyboard shortcuts

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