swohttp

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

View Source
const (
	XTraceHdr         = "X-Trace"
	XTraceOptsRespHdr = "X-Trace-Options-Response"
)

Variables

This section is empty.

Functions

func NewBaseHandler

func NewBaseHandler(h http.Handler) http.Handler

NewBaseHandler wraps a handler with our instrumentation. It is expected to wrap or be wrapped by `otelhttp` instrumentation (see WrapBaseHandler).

func WrapBaseHandler

func WrapBaseHandler(h http.Handler, operation string) http.Handler

WrapBaseHandler wraps a handler with our instrumentation, as well as otelhttp instrumentation. It is intended for use with the base handler as provided to a mux. Individual route handlers should use `otelhttp.WithRouteTag` instead.

Types

This section is empty.

Jump to

Keyboard shortcuts

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