automaticloggingprocessor

package
v0.18.4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BackendLoki is the backend config value for sending logs to a Loki pipeline
	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

func NewFactory() component.ProcessorFactory

NewFactory returns a new factory for the Attributes processor.

Types

type AutomaticLoggingConfig

type AutomaticLoggingConfig struct {
	Backend           string         `mapstructure:"backend" yaml:"backend"`
	LokiName          string         `mapstructure:"loki_name" yaml:"loki_name"`
	Spans             bool           `mapstructure:"spans" yaml:"spans"`
	Roots             bool           `mapstructure:"roots" yaml:"roots"`
	Processes         bool           `mapstructure:"processes" yaml:"processes"`
	SpanAttributes    []string       `mapstructure:"span_attributes" yaml:"span_attributes"`
	ProcessAttributes []string       `mapstructure:"process_attributes" yaml:"process_attributes"`
	Overrides         OverrideConfig `mapstructure:"overrides" yaml:"overrides"`
	Timeout           time.Duration  `mapstructure:"timeout" yaml:"timeout"`
}

AutomaticLoggingConfig holds config information for automatic logging

type Config

type Config struct {
	configmodels.ProcessorSettings `mapstructure:",squash"`

	LoggingConfig *AutomaticLoggingConfig `mapstructure:"automatic_logging"`
}

Config holds the configuration for the Automatic Logging processor.

type OverrideConfig

type OverrideConfig struct {
	LokiTag     string `mapstructure:"loki_tag" yaml:"loki_tag"`
	ServiceKey  string `mapstructure:"service_key" yaml:"service_key"`
	SpanNameKey string `mapstructure:"span_name_key" yaml:"span_name_key"`
	StatusKey   string `mapstructure:"status_key" yaml:"status_key"`
	DurationKey string `mapstructure:"duration_key" yaml:"duration_key"`
	TraceIDKey  string `mapstructure:"trace_id_key" yaml:"trace_id_key"`
}

OverrideConfig contains overrides for various strings

Jump to

Keyboard shortcuts

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