Documentation
¶
Index ¶
- Constants
- func ContextWithSpan(c *gin.Context) (ctx context.Context, ok bool)
- func ExtraTraceID(ctx context.Context, key string) string
- func Init(sf int, svcName, addr string)
- func NewTracer(servicename string, addr string) (opentracing.Tracer, io.Closer, error)
- func SetSamplingFrequency(n int)
- func TracerWrapper(c *gin.Context)
Constants ¶
View Source
const TracerKey = "Tracer-context"
Variables ¶
This section is empty.
Functions ¶
func ContextWithSpan ¶
ContextWithSpan 返回context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.