Documentation ¶
Index ¶
- func ClientSpanFromCtxGRPC(ctx context.Context, name string) (context.Context, *trace.Span)
- func ClientSpanFromReqHTTP(ctx context.Context, r *http.Request, name string) (context.Context, *trace.Span)
- func GetSpanFromTrace(l log.Logger, traceSpan, name string) (context.Context, *trace.Span)
- func GetTraceString(ctx trace.SpanContext) string
- func Init(serviceName string, a cfg.TraceAgent) error
- func ServerSpanFromCtxGRPC(ctx context.Context, name string) (context.Context, *trace.Span)
- func SpanFromReqAPI(r *http.Request, name string) (context.Context, *trace.Span)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientSpanFromCtxGRPC ¶
ClientSpanFromCtxGRPC creates span with grpc context propagation.
func ClientSpanFromReqHTTP ¶
func ClientSpanFromReqHTTP(ctx context.Context, r *http.Request, name string) (context.Context, *trace.Span)
ClientSpanFromReqHTTP creates span with request b3 propagation.
func GetSpanFromTrace ¶
GetSpanFromTrace .
func Init ¶
func Init(serviceName string, a cfg.TraceAgent) error
Init initializes jaeger trace agent.
func ServerSpanFromCtxGRPC ¶
ServerSpanFromCtxGRPC creates span with grpc context propagation.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.