tracer

package
v0.0.0-...-1809b62 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseTracer

func CloseTracer()

func GetTracer

func GetTracer() opentracing.Tracer

func SetServiceName

func SetServiceName(service string)

func Start

func Start(spanName string, ctx context.Context) (newCtx context.Context, finish func(...SpanOption), err error)

func WithTracer

func WithTracer(head, addr string, percent int, maxTagValueLength int)

WithTracer addr:地址,percent 概率采集

Types

type SpanOption

type SpanOption func(span opentracing.Span)

func SpanWithError

func SpanWithError(err error) SpanOption

func SpanWithLog

func SpanWithLog(arg ...interface{}) SpanOption

example: SpanWithLog(

"event", "soft error",
"type", "cache timeout",
"waited.millis", 1500)

Jump to

Keyboard shortcuts

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