Add OpenTelemetry tracing and log correlation
This commit is contained in:
@@ -17,12 +17,27 @@ type Config struct {
|
||||
GRPC GRPCConfig `koanf:"grpc"`
|
||||
Database DatabaseConfig `koanf:"db"`
|
||||
Settlement SettlementConfig `koanf:"settlement"`
|
||||
Telemetry TelemetryConfig `koanf:"telemetry"`
|
||||
}
|
||||
|
||||
type DashboardConfig struct {
|
||||
Environment string `koanf:"environment"`
|
||||
HTTP HTTPConfig `koanf:"http"`
|
||||
Database DatabaseConfig `koanf:"db"`
|
||||
Environment string `koanf:"environment"`
|
||||
HTTP HTTPConfig `koanf:"http"`
|
||||
Database DatabaseConfig `koanf:"db"`
|
||||
Telemetry TelemetryConfig `koanf:"telemetry"`
|
||||
}
|
||||
|
||||
type TelemetryConfig struct {
|
||||
Enabled bool `koanf:"enabled"`
|
||||
Protocol string `koanf:"protocol"`
|
||||
Endpoint string `koanf:"endpoint"`
|
||||
Insecure bool `koanf:"insecure"`
|
||||
Headers map[string]string `koanf:"headers"`
|
||||
Sampler string `koanf:"sampler"`
|
||||
SamplerArg string `koanf:"sampler-arg"`
|
||||
ExportTimeout time.Duration `koanf:"export-timeout"`
|
||||
BatchTimeout time.Duration `koanf:"batch-timeout"`
|
||||
ShutdownTimeout time.Duration `koanf:"shutdown-timeout"`
|
||||
}
|
||||
|
||||
type GRPCConfig struct {
|
||||
|
||||
Reference in New Issue
Block a user