trace

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: MIT Imports: 9 Imported by: 0

README

trace

框架支持 opentracing,但开源版默认不开启。

推荐使用 jaeger

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceID

func GetTraceID(ctx context.Context) (traceID string)

GetTraceID 查询 trace_id

func InjectTraceHeader

func InjectTraceHeader(ctx opentracing.SpanContext, req *http.Request)

InjectTrace 注入 OpenTracing 头信息

func Stop

func Stop()

Stop 停止 trace 协程

Types

This section is empty.

Jump to

Keyboard shortcuts

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