Documentation
¶
Index ¶
- Constants
- type ExporterType
- type OTelPluginConfig
- func (c *OTelPluginConfig) ApplyDefaults()
- func (c OTelPluginConfig) LogsActive() bool
- func (c OTelPluginConfig) MetricsActive() bool
- func (c OTelPluginConfig) MetricsOn() bool
- func (c OTelPluginConfig) RuntimeOn() bool
- func (c OTelPluginConfig) TracesActive() bool
- func (c OTelPluginConfig) TracesOn() bool
- func (c OTelPluginConfig) Valid() bool
- type ProtocolType
Constants ¶
View Source
const DefaultServiceName = "authula"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExporterType ¶
type ExporterType string
const ( ExporterOTLP ExporterType = "otlp" ExporterStdout ExporterType = "stdout" ExporterNone ExporterType = "none" )
type OTelPluginConfig ¶
type OTelPluginConfig struct {
Enabled bool `json:"enabled" toml:"enabled"`
ServiceName string `json:"service_name,omitempty" toml:"service_name"`
Exporter ExporterType `json:"exporter,omitempty" toml:"exporter"`
Protocol ProtocolType `json:"protocol,omitempty" toml:"protocol"`
Endpoint string `json:"endpoint,omitempty" toml:"endpoint"`
Insecure bool `json:"insecure,omitempty" toml:"insecure"`
Headers map[string]string `json:"headers,omitempty" toml:"headers"`
TracesEnabled *bool `json:"traces_enabled,omitempty" toml:"traces_enabled"`
MetricsEnabled *bool `json:"metrics_enabled,omitempty" toml:"metrics_enabled"`
LogsEnabled bool `json:"logs_enabled,omitempty" toml:"logs_enabled"`
RuntimeMetrics *bool `json:"runtime_metrics,omitempty" toml:"runtime_metrics"`
SampleRatio *float64 `json:"sample_ratio,omitempty" toml:"sample_ratio"`
TrustProxy bool `json:"trust_proxy,omitempty" toml:"trust_proxy"`
}
func (*OTelPluginConfig) ApplyDefaults ¶
func (c *OTelPluginConfig) ApplyDefaults()
func (OTelPluginConfig) LogsActive ¶
func (c OTelPluginConfig) LogsActive() bool
func (OTelPluginConfig) MetricsActive ¶
func (c OTelPluginConfig) MetricsActive() bool
func (OTelPluginConfig) MetricsOn ¶
func (c OTelPluginConfig) MetricsOn() bool
func (OTelPluginConfig) RuntimeOn ¶
func (c OTelPluginConfig) RuntimeOn() bool
RuntimeOn reports whether Go runtime metrics should be started. It defaults to true when unset.
func (OTelPluginConfig) TracesActive ¶
func (c OTelPluginConfig) TracesActive() bool
func (OTelPluginConfig) TracesOn ¶
func (c OTelPluginConfig) TracesOn() bool
func (OTelPluginConfig) Valid ¶
func (c OTelPluginConfig) Valid() bool
type ProtocolType ¶
type ProtocolType string
const ( ProtocolHTTP ProtocolType = "http" ProtocolGRPC ProtocolType = "grpc" )
Click to show internal directories.
Click to hide internal directories.