Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { AppVersion string AppName string `yaml:"app_name" mapstructure:"app_name" default:"compass"` NewRelic NewRelicConfig `yaml:"newrelic" mapstructure:"newrelic"` OpenTelemetry OpenTelemetryConfig `yaml:"open_telemetry" mapstructure:"open_telemetry"` }
type NewRelicConfig ¶
type OpenTelemetryConfig ¶
type OpenTelemetryConfig struct { Enabled bool `yaml:"enabled" mapstructure:"enabled" default:"false"` CollectorAddr string `yaml:"collector_addr" mapstructure:"collector_addr" default:"localhost:4317"` PeriodicReadInterval time.Duration `yaml:"periodic_read_interval" mapstructure:"periodic_read_interval" default:"1s"` TraceSampleProbability float64 `yaml:"trace_sample_probability" mapstructure:"trace_sample_probability" default:"1"` }
Click to show internal directories.
Click to hide internal directories.