Documentation ¶
Index ¶
- func CloseTracerProvider(ctx context.Context) error
- func CreateTracerExporter(params *paramtable.ComponentParam) (sdk.SpanExporter, error)
- func GetDynamicOtelGrpcClientStatsHandler() stats.Handler
- func GetDynamicOtelGrpcServerStatsHandler() stats.Handler
- func GetInterceptorOpts() []otelgrpc.Option
- func Init() error
- func NotifyTracerProviderUpdated()
- func Propagate(ctx, newRoot context.Context) context.Context
- func SetTracerProvider(exp sdk.SpanExporter, traceIDRatio float64)
- func SetupSpan(ctx context.Context, span trace.Span) context.Context
- func StackTrace() string
- func StackTraceMsg(numFuncs uint) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseTracerProvider ¶
func CreateTracerExporter ¶
func CreateTracerExporter(params *paramtable.ComponentParam) (sdk.SpanExporter, error)
func GetDynamicOtelGrpcClientStatsHandler ¶
GetDynamicOtelGrpcClientStatsHandler returns the singleton instance of grpc client stats.Handler
func GetDynamicOtelGrpcServerStatsHandler ¶
GetDynamicOtelGrpcServerStatsHandler returns the singleton instance of grpc server stats.Handler
func GetInterceptorOpts ¶
GetInterceptorOpts returns the Option of gRPC open-tracing
func NotifyTracerProviderUpdated ¶
func NotifyTracerProviderUpdated()
func Propagate ¶
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 ¶
SetupSpan add span into ctx values. Also setup logger in context with tracerID field.
func StackTraceMsg ¶
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.
Click to show internal directories.
Click to hide internal directories.