middleware

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLog

func AccessLog(path ...string) shack.Handler

func OpenTelemetry added in v0.4.1

func OpenTelemetry(service string, opts ...OtelOption) shack.Handler

func Recovery

func Recovery() shack.Handler

func SemVersion added in v0.4.1

func SemVersion() string

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

func Version added in v0.4.1

func Version() string

Version is the current release version of the gin instrumentation.

Types

type OtelOption added in v0.4.1

type OtelOption interface {
	// contains filtered or unexported methods
}

OtelOption specifies instrumentation configuration options.

func WithPropagators added in v0.4.1

func WithPropagators(propagators propagation.TextMapPropagator) OtelOption

WithPropagators specifies propagators to use for extracting information from the HTTP requests. If none are specified, global ones will be used.

func WithTracerProvider added in v0.4.1

func WithTracerProvider(provider oteltrace.TracerProvider) OtelOption

WithTracerProvider specifies a tracer provider to use for creating a tracer. If none is specified, the global provider is used.

Jump to

Keyboard shortcuts

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