 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
      View Source
      
  
    const ( // BackendLogs is the backend config for sending logs to a Loki pipeline BackendLogs = "logs_instance" // BackendLoki is an alias to BackendLogs. DEPRECATED. BackendLoki = "loki" // BackendStdout is the backend config value for sending logs to stdout BackendStdout = "stdout" )
      View Source
      
  const TypeStr = "automatic_logging"
    TypeStr is the unique identifier for the Automatic Logging processor.
Variables ¶
This section is empty.
Functions ¶
func NewFactory ¶
NewFactory returns a new factory for the Attributes processor.
Types ¶
type AutomaticLoggingConfig ¶
type AutomaticLoggingConfig struct {
	Backend           string         `mapstructure:"backend" yaml:"backend,omitempty"`
	LogsName          string         `mapstructure:"logs_instance_name" yaml:"logs_instance_name,omitempty"`
	Spans             bool           `mapstructure:"spans" yaml:"spans,omitempty"`
	Roots             bool           `mapstructure:"roots" yaml:"roots,omitempty"`
	Processes         bool           `mapstructure:"processes" yaml:"processes,omitempty"`
	SpanAttributes    []string       `mapstructure:"span_attributes" yaml:"span_attributes,omitempty"`
	ProcessAttributes []string       `mapstructure:"process_attributes" yaml:"process_attributes,omitempty"`
	Overrides         OverrideConfig `mapstructure:"overrides" yaml:"overrides,omitempty"`
	Timeout           time.Duration  `mapstructure:"timeout" yaml:"timeout,omitempty"`
	Labels            []string       `mapstructure:"labels" yaml:"labels,omitempty"`
	// Deprecated fields:
	LokiName string `mapstructure:"loki_name" yaml:"loki_name,omitempty"` // Superseded by LogsName
}
    AutomaticLoggingConfig holds config information for automatic logging
type Config ¶
type Config struct {
	LoggingConfig *AutomaticLoggingConfig `mapstructure:"automatic_logging"`
}
    Config holds the configuration for the Automatic Logging processor.
type OverrideConfig ¶
type OverrideConfig struct {
	LogsTag     string `mapstructure:"logs_instance_tag" yaml:"logs_instance_tag,omitempty"`
	ServiceKey  string `mapstructure:"service_key" yaml:"service_key,omitempty"`
	SpanNameKey string `mapstructure:"span_name_key" yaml:"span_name_key,omitempty"`
	StatusKey   string `mapstructure:"status_key" yaml:"status_key,omitempty"`
	DurationKey string `mapstructure:"duration_key" yaml:"duration_key,omitempty"`
	TraceIDKey  string `mapstructure:"trace_id_key" yaml:"trace_id_key,omitempty"`
	// Deprecated fields:
	LokiTag string `mapstructure:"loki_tag" yaml:"loki_tag,omitempty"` // Superseded by LogsTag
}
    OverrideConfig contains overrides for various strings
 Click to show internal directories. 
   Click to hide internal directories.