tracer

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register added in v1.2.7

func Register(b Builder)

Register 注册tracer

Types

type Builder added in v1.2.7

type Builder interface {
	Build(name string) (ITracer, error)
	Name() string
	AddOption(opt interface{})
	AddFactory(strategy string, factory SpanFactory)
}

Builder tracer build

func GetBuilder added in v1.2.7

func GetBuilder(name string) Builder

GetBuilder 获取构建器

type ISpan added in v1.2.7

type ISpan interface {
	Begin(ctx interface{})
	End(ctx interface{})
}

ISpan span interface

type ITracer added in v1.2.7

type ITracer interface {
	module.IModule

	GetSpan(strategy string) (ISpan, error)

	GetTracing() interface{}
}

ITracer tracer interface

type SpanFactory added in v1.2.7

type SpanFactory func(interface{}) (ISpan, error)

SpanFactory span 工厂

Jump to

Keyboard shortcuts

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