Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Debug sets the bind address for pprof & zpages server.
Debug string `mapstructure:"debug_addr"`
// OpenCensus trace & metrics configurations.
EnableCPU bool `mapstructure:"enable_cpu"`
EnableMemory bool `mapstructure:"enable_memory"`
SamplingFraction float64 `mapstructure:"sampling_fraction"`
// OpenCensus exporter configurations.
ServiceName string `mapstructure:"service_name"`
// NewRelic exporter.
EnableNewrelic bool `mapstructure:"enable_newrelic"`
NewRelicAPIKey string `mapstructure:"newrelic_api_key"`
// OpenTelemetry Agent exporter.
EnableOtelAgent bool `mapstructure:"enable_otel_agent"`
OpenTelAgentAddr string `mapstructure:"otel_agent_addr"`
}
Click to show internal directories.
Click to hide internal directories.