tracer

package
v0.0.2-0...-701f3bf Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: Apache-2.0 Imports: 22 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseTracerProvider

func CloseTracerProvider(ctx context.Context) error

func CreateTracerExporter

func CreateTracerExporter(params *paramtable.ComponentParam) (sdk.SpanExporter, error)

func GetDynamicOtelGrpcClientStatsHandler

func GetDynamicOtelGrpcClientStatsHandler() stats.Handler

GetDynamicOtelGrpcClientStatsHandler returns the singleton instance of grpc client stats.Handler

func GetDynamicOtelGrpcServerStatsHandler

func GetDynamicOtelGrpcServerStatsHandler() stats.Handler

GetDynamicOtelGrpcServerStatsHandler returns the singleton instance of grpc server stats.Handler

func GetInterceptorOpts

func GetInterceptorOpts() []otelgrpc.Option

GetInterceptorOpts returns the Option of gRPC open-tracing

func Init

func Init() error

func NotifyTracerProviderUpdated

func NotifyTracerProviderUpdated()

func Propagate

func Propagate(ctx, newRoot context.Context) context.Context

Propagate passes span context into a new ctx with different lifetime. Also setup logger in new context with traceID field.

func SetTracerProvider

func SetTracerProvider(exp sdk.SpanExporter, traceIDRatio float64)

func SetupSpan

func SetupSpan(ctx context.Context, span trace.Span) context.Context

SetupSpan add span into ctx values. Also setup logger in context with tracerID field.

func StackTrace

func StackTrace() string

StackTrace returns the stack trace information.

func StackTraceMsg

func StackTraceMsg(numFuncs uint) string

StackTraceMsg returns the stack information, which numFuncs means how many functions do you want to show in the stack information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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