Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { // DefaultPipelines contains the list of pipelines to use when a more specific record can't be // found in the routing table. // Optional. DefaultPipelines []pipeline.ID `mapstructure:"default_pipelines"` // ErrorMode determines how the processor reacts to errors that occur while processing an OTTL // condition. // Valid values are `ignore` and `propagate`. // `ignore` means the processor ignores errors returned by conditions and continues on to the // next condition. This is the recommended mode. If `ignore` is used and a statement's // condition has an error then the payload will be routed to the default exporter. `propagate` // means the processor returns the error up the pipeline. This will result in the payload being // dropped from the collector. // The default value is `propagate`. ErrorMode ottl.ErrorMode `mapstructure:"error_mode"` // Table contains the routing table for this processor. // Required. Table []RoutingTableItem `mapstructure:"table"` // MatchOnce determines whether the connector matches multiple statements. // Optional. MatchOnce bool `mapstructure:"match_once"` }
Config defines configuration for the Routing processor.
type RoutingTableItem ¶
type RoutingTableItem struct { // Statement is a OTTL statement used for making a routing decision. // Required when 'Value' isn't provided. Statement string `mapstructure:"statement"` // Pipelines contains the list of pipelines to use when the value from the FromAttribute field // matches this table item. When no pipelines are specified, the ones specified under // DefaultPipelines are used, if any. // The routing processor will fail upon the first failure from these pipelines. // Optional. Pipelines []pipeline.ID `mapstructure:"pipelines"` }
RoutingTableItem specifies how data should be routed to the different pipelines
Click to show internal directories.
Click to hide internal directories.