obs

package
v0.0.0-...-3b26d93 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitTracing

func InitTracing() func(context.Context) error

InitTracing initializes the global tracer

func LoggerTags

func LoggerTags(ctx context.Context) map[string]any

func SetSpanAttribute

func SetSpanAttribute(ctx context.Context, key string, value string)

func ShutdownTracing

func ShutdownTracing()

func Spanned

func Spanned(current context.Context, name string,
	tracedFn func(context.Context) error) error

func SpannedT

func SpannedT[T any](current context.Context, name string, tracedFn func(context.Context) (T, error)) (T, error)

func WrapHttpHandler

func WrapHttpHandler(handler http.Handler, operation string,
	options ...otelhttp.Option) http.Handler

Types

This section is empty.

Jump to

Keyboard shortcuts

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