forked from benthosdev/benthos
/
jaeger.go
23 lines (21 loc) · 830 Bytes
/
jaeger.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package tracer
// JaegerConfig is config for the Jaeger metrics type.
type JaegerConfig struct {
AgentAddress string `json:"agent_address" yaml:"agent_address"`
CollectorURL string `json:"collector_url" yaml:"collector_url"`
SamplerType string `json:"sampler_type" yaml:"sampler_type"`
SamplerParam float64 `json:"sampler_param" yaml:"sampler_param"`
Tags map[string]string `json:"tags" yaml:"tags"`
FlushInterval string `json:"flush_interval" yaml:"flush_interval"`
}
// NewJaegerConfig creates an JaegerConfig struct with default values.
func NewJaegerConfig() JaegerConfig {
return JaegerConfig{
AgentAddress: "",
CollectorURL: "",
SamplerType: "const",
SamplerParam: 1.0,
Tags: map[string]string{},
FlushInterval: "",
}
}