Documentation
¶
Index ¶
- func GetSpanId(ctx context.Context) string
- func GetString(ctx context.Context, key string) string
- func GetTraceId(ctx context.Context) string
- func GetValue(ctx context.Context, key string) interface{}
- func InitJaeger(serviceName, endpoint string) (flush func(), err error)
- func NewAPISpan(r *ghttp.Request, spanName string) (context.Context, *gtrace.Span)
- func NewRPCClient(address string) (error, *gRPCClient)
- func NewRPCServer(address string) (error, *gRPCServer)
- func NewSpan(ctx context.Context, spanName string) (context.Context, *gtrace.Span)
- func Request(ctx context.Context, url string) string
- func Set(ctx context.Context, key string, value interface{}) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitJaeger ¶
InitJaeger 初始化jaeger并将其注册到全局TracerProvider。 输出参数“flush”用于等待上载导出的跟踪范围, 如果您的程序正在结束,并且您不想丢失最近的跨距,则此选项非常有用
func NewAPISpan ¶
NewSpan HTTP
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.