Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { MetricsEnabled bool `toml:"enabled"` MeterName string `toml:"meter_name"` ServiceName string `toml:"service_name"` ExporterEndpoint string `toml:"exporter_endpoint" comment:"the endpoint to export metrics to, like a local OpenTelemetry collector"` }
Config is the configuration struct for the tm2 telemetry package
func DefaultTelemetryConfig ¶
func DefaultTelemetryConfig() *Config
DefaultTelemetryConfig is the default configuration used for the node
func (*Config) ValidateBasic ¶
ValidateBasic performs basic telemetry config validation and returns an error if any check fails
Click to show internal directories.
Click to hide internal directories.