advtrace

package
v0.0.0-...-575c38c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: MIT Imports: 17 Imported by: 0

README

advtrace

  • 提供从配置文件初始化分布式追踪框架的方法
  • 提供通用的向 context.Context 中注入 opentracing.Tracer 的方法

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithTracer

func ContextWithTracer(ctx context.Context, tracer opentracing.Tracer) context.Context

func Load

func Load(ctx context.Context, ld advconf.Loader) (tracer opentracing.Tracer, closer io.Closer, err error)

func Tracer

func Tracer(ctx context.Context) opentracing.Tracer

Types

type ZapZipkinSpanLogger

type ZapZipkinSpanLogger struct {
	Logger *zap.Logger
}

func (*ZapZipkinSpanLogger) Close

func (z *ZapZipkinSpanLogger) Close() error

func (*ZapZipkinSpanLogger) Send

func (z *ZapZipkinSpanLogger) Send(sp model.SpanModel)

Jump to

Keyboard shortcuts

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