Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloseTracer ¶
func CloseTracer()
func SetServiceName ¶
func SetServiceName(service string)
func WithTracer ¶
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)
Click to show internal directories.
Click to hide internal directories.