Documentation ¶
Index ¶
- func ClientWrapper() client.CallWrapper
- func ExtractSpanContextFromContext(ctx context.Context, tracer opentracing.Tracer) (opentracing.SpanContext, error)
- func ExtractSpanContextFromMQHeader(header amqp.Table, tracer opentracing.Tracer) (opentracing.SpanContext, error)
- func ExtractSpanFromContext(ctx context.Context, tracer opentracing.Tracer, operationName string) opentracing.Span
- func ExtractSpanFromMQHeader(header amqp.Table, tracer opentracing.Tracer, name string) (sp opentracing.Span)
- func GRPCServerWrapper()
- func Init(serviceName string) (io.Closer, error)
- func InitByConfig(serviceName string, cfg jCfg.Configuration) (io.Closer, error)
- func InjectSpanContextToContext(ctx context.Context, tracer opentracing.Tracer, ...) (context.Context, error)
- func InjectSpanContextToMQHeader(header amqp.Table, tracer opentracing.Tracer, ...) error
- func InjectSpanToContext(ctx context.Context, span opentracing.Span) (context.Context, error)
- func InjectSpanToMQHeader(header amqp.Table, span opentracing.Span) error
- func ServerWrapper() server.HandlerWrapper
- type MQTextMapCarrier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientWrapper ¶
func ClientWrapper() client.CallWrapper
func ExtractSpanFromContext ¶
func ExtractSpanFromMQHeader ¶
func GRPCServerWrapper ¶
func GRPCServerWrapper()
func Init ¶
this method will initial global tracer if no call global tracer default no-op tracer init config from key:value
func InitByConfig ¶
func InjectSpanToContext ¶
func InjectSpanToMQHeader ¶
func ServerWrapper ¶
func ServerWrapper() server.HandlerWrapper
Types ¶
type MQTextMapCarrier ¶
func (MQTextMapCarrier) ForeachKey ¶
func (c MQTextMapCarrier) ForeachKey(handler func(key, val string) error) error
func (MQTextMapCarrier) Set ¶
func (c MQTextMapCarrier) Set(key, val string)
Click to show internal directories.
Click to hide internal directories.