kratos: github.com/go-kratos/kratos/pkg/net/trace/zipkin Index | Files

package zipkin

import "github.com/go-kratos/kratos/pkg/net/trace/zipkin"

Index

Package Files

config.go zipkin.go

func Init Uses

func Init(c *Config)

Init init trace report.

type Config Uses

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"`
}

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

Package zipkin imports 9 packages (graph). Updated 2020-03-29. Refresh now. Tools for package owners.