tracer

package
v1.0.51 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildAttribute added in v1.0.46

func BuildAttribute(args ...any) []attribute.KeyValue

func BuildBaggage added in v1.0.40

func BuildBaggage(args ...any) baggage.Baggage

func ExtractTextMapCarrier

func ExtractTextMapCarrier(spanCtx context.Context) propagation.MapCarrier

func ExtractTextMapCarrierBytes

func ExtractTextMapCarrierBytes(spanCtx context.Context) []byte

func InjectTextMapCarrier

func InjectTextMapCarrier(spanCtx context.Context) (propagation.MapCarrier, error)

func MetricCount added in v1.0.38

func MetricCount(ctx context.Context, meter metric.Meter, data ...any)

func MetricLatency added in v1.0.38

func MetricLatency(ctx context.Context, span trace.Span, meter metric.Meter, data ...any)

func MetricLineCount added in v1.0.38

func MetricLineCount(ctx context.Context, meter metric.Meter, data ...any)

func NewTracer

func NewTracer(baseConfig *common_utils.BaseConfig) func()

func StartAndTrace added in v1.0.39

func StartAndTrace(ctx context.Context, spanName string) (context.Context, trace.Span)

func StartAndTraceHttp added in v1.0.40

func StartAndTraceHttp(r *http.Request, spanName string) (context.Context, trace.Span)

func StartAndTracePubsub added in v1.0.40

func StartAndTracePubsub(ctx context.Context, spanName string, data *pubsub.Message) (context.Context, trace.Span)

func StartAndTraceWithData added in v1.0.40

func StartAndTraceWithData(ctx context.Context, spanName string, data ...any) (context.Context, trace.Span)

func TraceErr

func TraceErr(span trace.Span, err error)

func TraceWithErr

func TraceWithErr(span trace.Span, err error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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