zipkin

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	EndpointBackendfail = errors.New("trace: Init  NewReporter fail EndpointBackend Wrong type ")
)

Functions

func Init

func Init(c *Config) error

Init init trace report.

Types

type Config

type Config struct {
	Endpoint        string         `dsn:"endpoint"`
	BatchSize       int            `dsn:"query.batch_size,100"`
	Timeout         xtime.Duration `dsn:"query.timeout,200ms"`
	DisableSample   bool           `dsn:"query.disable_sample"`
	EndpointBackend string         `json:"EndpointBackend"`
}

Config config. url should be the endpoint to send the spans to, e.g. http://localhost:9411/api/v2/spans

Jump to

Keyboard shortcuts

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