Documentation ¶
Index ¶
- Constants
- Variables
- func HttpReporterBuilder(cfg ZipkinTraceConfig) (reporter.Reporter, error)
- func KafkaReporterBuilder(cfg ZipkinTraceConfig) (reporter.Reporter, error)
- func NewHttpTracer(config map[string]interface{}) (api.Tracer, error)
- func NewZipkinDriverImpl() *zipkinDriver
- func ParseHostPort(hostPort string) (string, uint16, error)
- type HttpReportConfig
- type KafkaReportConfig
- type ReporterBuilder
- type SpanTag
- type ZipkinTraceConfig
Constants ¶
View Source
const ( ZipkinKafkaReport string = "kafka" ZipkinHttpReport string = "http" )
View Source
const ( NoopSpanTraceID = "-1" NoopSpanID = "0" NoopSpanParentID = "-1" )
View Source
const (
DriverName = "Zipkin"
)
Variables ¶
View Source
var NoopSpan = noopSpan{}
Functions ¶
func HttpReporterBuilder ¶
func HttpReporterBuilder(cfg ZipkinTraceConfig) (reporter.Reporter, error)
func KafkaReporterBuilder ¶
func KafkaReporterBuilder(cfg ZipkinTraceConfig) (reporter.Reporter, error)
func NewZipkinDriverImpl ¶
func NewZipkinDriverImpl() *zipkinDriver
Types ¶
type HttpReportConfig ¶
type KafkaReportConfig ¶
type KafkaReportConfig struct {
Topic string `json:"topic"`
}
type ReporterBuilder ¶
type ReporterBuilder func(ZipkinTraceConfig) (reporter.Reporter, error)
func GetReportBuilder ¶
func GetReportBuilder(typ string) (ReporterBuilder, bool)
type ZipkinTraceConfig ¶
type ZipkinTraceConfig struct { ServiceName string `json:"service_name"` Reporter string `json:"reporter"` SampleRate float64 `json:"sample_rate"` Addresses []string `json:"addresses"` HttpConfig *HttpReportConfig `json:"http"` KafkaConfig *KafkaReportConfig `json:"kafka"` }
func (*ZipkinTraceConfig) ValidateZipkinConfig ¶
func (z *ZipkinTraceConfig) ValidateZipkinConfig() (bool, error)
Click to show internal directories.
Click to hide internal directories.