otel

package
v0.0.0-...-325211c Latest Latest
Warning

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

Go to latest
Published: May 2, 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(ctx context.Context, config *TracingConfig) (err error)

func ServerGrpcInterceptor

func ServerGrpcInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

ServerGrpcInterceptor is a gRPC server interceptor for tracing and optional metadata-based context enhancement.

Types

type TracingConfig

type TracingConfig struct {
	Endpoint string
	Service  string
}

Jump to

Keyboard shortcuts

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