Skip to content

Commit

Permalink
Add clarifying statement about ignore
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerHelmuth committed Mar 1, 2023
1 parent 71c2e32 commit edbe85a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .chloggen/rp-error-mode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ issues: [19147]
# (Optional) One or more lines of additional information to render under the primary note.
# These lines will be padded with 2 spaces and then inserted directly into the document.
# Use pipe (|) for multiline entries.
subtext:
subtext: If a condition errors when using `ignore` the payload will be routed to the default exporter.
2 changes: 1 addition & 1 deletion processor/routingprocessor/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ To configure the routing processor with [OTTL] routing conditions use the follow
- `table.statement (required)`: the routing condition provided as the [OTTL] statement.
- `table.exporters (required)`: the list of exporters to use when the routing condition is met.
- `default_exporters (optional)`: contains the list of exporters to use when a record does not meet any of specified conditions.
- `error_mode (optional)`: determines how errors returned from OTTL statements are handled. Valid values are `ignore` and `propagate`. If not supplied, `propagate` is used.
- `error_mode (optional)`: determines how errors returned from OTTL statements are handled. Valid values are `ignore` and `propagate`. If `ignored` is used and a statement's condition has an error then the payload will be routed to the default exporter. If not supplied, `propagate` is used.


```yaml
Expand Down
1 change: 1 addition & 0 deletions processor/routingprocessor/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ type Config struct {
// 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 `ignored` 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"`
Expand Down

0 comments on commit edbe85a

Please sign in to comment.