otel

package
v0.0.0-...-8ea4bb1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCClientHandler

func NewGRPCClientHandler(ignore ...string) stats.Handler

NewGRPCClientHandler creates a new stats.Handler that ignores tracing/metrics for the provided methods.

func SetupOTelSDK

func SetupOTelSDK(ctx context.Context, name string, log logrus.FieldLogger) (shutdown func(context.Context) error, err error)

setupOTelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.

func Start

func Start(ctx context.Context, name string, opts ...otrace.SpanStartOption) (context.Context, otrace.Span)

Types

This section is empty.

Jump to

Keyboard shortcuts

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