jaeger

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultSpan

func GetDefaultSpan(ctx context.Context, name string) (context.Context, opentracing.Span)

GetDefaultSpan 获取默认 span

func GetServerSpan

func GetServerSpan(ctx context.Context, name string) (context.Context, opentracing.Span)

GetServerSpan 获取server span

func GetSpan

func GetSpan(ctx context.Context, name string, f func(span opentracing.Span)) (context.Context, opentracing.Span)

GetSpan 获取span

func InitGlobalTracer

func InitGlobalTracer(config *config.JaegerConfig) (io.Closer, error)

InitGlobalTracer ...

func InitGlobalTracerFromEtcd

func InitGlobalTracerFromEtcd(etcdCli *etcd.Client) (closer io.Closer, err error)

InitGlobalTracerFromEtcd ...

func InitTracer

func InitTracer(config *config.JaegerConfig, serviceName string) (opentracing.Tracer, io.Closer, error)

InitTracer ..

func InitTracerFromEtcd

func InitTracerFromEtcd(etcdCli *etcd.Client, serviceName string) (tracer opentracing.Tracer, closer io.Closer, err error)

InitTracerFromEtcd ...

func NewJaegerConfig

func NewJaegerConfig(etcdCli *etcd.Client) (string, *config.JaegerConfig)

NewJaegerConfig get config from etcd

func SpanFinish

func SpanFinish(span opentracing.Span, err error)

SpanFinish span错误记录

Types

This section is empty.

Jump to

Keyboard shortcuts

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