otellib

package
v1.20.5 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitOTelSDK

func InitOTelSDK(ctx context.Context, collectorEndpoint string, tlsConfig *tls.Config, res *resource.Resource) (shutdown func(context.Context) error)

InitOTelSDK initializes the OTel meter provider

func NewHTTPMiddleware

func NewHTTPMiddleware(handler http.Handler, operation string) http.Handler

NewHTTPMiddleware wraps an http.Handler with OpenTelemetry instrumentation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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