trace

package
v0.0.0-...-04d676d Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClientSpanFromCtxGRPC

func ClientSpanFromCtxGRPC(ctx context.Context, name string) (context.Context, *trace.Span)

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

func GetSpanFromTrace(l log.Logger, traceSpan, name string) (context.Context, *trace.Span)

GetSpanFromTrace .

func GetTraceString

func GetTraceString(ctx trace.SpanContext) string

GetTraceString .

func Init

func Init(serviceName string, a cfg.TraceAgent) error

Init initializes jaeger trace agent.

func ServerSpanFromCtxGRPC

func ServerSpanFromCtxGRPC(ctx context.Context, name string) (context.Context, *trace.Span)

ServerSpanFromCtxGRPC creates span with grpc context propagation.

func SpanFromReqAPI

func SpanFromReqAPI(r *http.Request, name string) (context.Context, *trace.Span)

SpanFromReqAPI creates span from request with b3 propagation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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