observe

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(ctx context.Context, cfg config.ObserveConfig) (shutdown func(context.Context) error, err error)

Configure sets up OpenTelemetry according to the configuration. If it does not return an error, make sure to call the returned shutdown function to properly stop the services and publish any unpublished batches of metrics.

func HttpTransport

func HttpTransport(wrapped http.RoundTripper, cfg config.ObserveConfig) http.RoundTripper

Types

type Multiplexer

type Multiplexer interface {
	Handle(pattern string, handler http.Handler)
	http.Handler
}

type Mux

type Mux struct {
	// contains filtered or unexported fields
}

func NewMux

func NewMux(wrapped Multiplexer) *Mux

func (*Mux) Handle

func (mux *Mux) Handle(pattern string, handler http.Handler)

func (*Mux) ServeHTTP

func (mux *Mux) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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