config

package
v0.0.0-...-546b1e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Logging   LoggingConfig   `mapstructure:"logging"`
	Telemetry TelemetryConfig `mapstructure:"telemetry"`
	Server    ServerConfig    `mapstructure:"server"`
}

type LoggingConfig

type LoggingConfig struct {
	LogLevel string `mapstructure:"logLevel"`
	Pretty   bool   `mapstructure:"pretty"`
}

type LogsConfig

type LogsConfig struct {
	OTLPEndpoint         string `mapstructure:"otlpEndpoint"`
	ExportTimeoutSeconds int    `mapstructure:"exportTimeoutSeconds"`
	BatchTimeoutSeconds  int    `mapstructure:"batchTimeoutSeconds"`
	LogLevel             string `mapstructure:"logLevel"`
}

type MetricsConfig

type MetricsConfig struct {
	OTLPEndpoint            string `mapstructure:"otlpEndpoint"`
	ExportTimeoutSeconds    int    `mapstructure:"exportTimeoutSeconds"`
	ExportIntervalSeconds   int    `mapstructure:"exportIntervalSeconds"`
	MemStatsIntervalSeconds int    `mapstructure:"memStatsIntervalSeconds"`
}

type ServerConfig

type ServerConfig struct {
	Addr string `mapstructure:"addr"`
	Port int    `mapstructure:"port"`
}

type TelemetryConfig

type TelemetryConfig struct {
	Tracing TracingConfig `mapstructure:"tracing"`
	Metrics MetricsConfig `mapstructure:"metrics"`
	Logging LogsConfig    `mapstructure:"logs"`
}

type TracingConfig

type TracingConfig struct {
	OTLPEndpoint         string  `mapstructure:"otlpEndpoint"`
	ExportTimeoutSeconds int     `mapstructure:"exportTimeoutSeconds"`
	SamplingRatio        float64 `mapstructure:"samplingRatio"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL