jaeger

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTraceClientCtxAndSpan

func GetTraceClientCtxAndSpan() (opentracing.Span, context.Context)

创建空的上下文, 生成追踪 span

func GetTraceServiceSpan

func GetTraceServiceSpan(ctx context.Context) opentracing.Span

从微服务上下文中获取追踪信息

func NewTracer

func NewTracer(servicename string) (opentracing.Tracer, io.Closer, error)

创建一个jaeger Tracer

Types

type Span

type Span interface {
	SetTopic(topic interface{})
	SetError(error interface{})
	SetHeader(header interface{})
	SetPayload(payload interface{})
	SetRequest(request interface{})
	SetResponse(response interface{}, err error, opts ...bool)
}

func NewSpan

func NewSpan(ctx context.Context) Span

Jump to

Keyboard shortcuts

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