Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server *ServerConfig `validate:"required"` Tracer *TracerConfig `validate:"required"` }
Config is root of toml config
type ServerConfig ¶
type ServerConfig struct {
Port int `toml:"port" validate:"required"`
}
ServerConfig is for server information
type TracerConfig ¶
type TracerConfig struct { Type string `toml:"type" validate:"required"` Jaeger *TracerDetailConfig `toml:"jaeger"` Datadog *TracerDetailConfig `toml:"datadog"` }
TracerConfig is for tracer information
type TracerDetailConfig ¶
type TracerDetailConfig struct { ServiceName string `toml:"service_name" validate:"required"` CollectorEndpoint string `toml:"collector_endpoint" validate:"required"` Sampling float64 `toml:"sampling_probability" validate:"required"` }
TracerDetailConfig is detail of tracer
Click to show internal directories.
Click to hide internal directories.