You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[connector/routing] Add feature gate to change default error_mode to ignore (#48433)
The `error_mode` in the routing connector determines how errors during
OTTL condition processing are handled. The current default is
`propagate`, which can drop valid data when a condition error occurs.
This PR adds a feature gate `connector.routing.defaultErrorModeIgnore`
that when enabled changes the default to `ignore`. In this mode, errors
are logged for visibility but valid data is preserved and processing
continues with the next condition.
The feature gate allows gradual rollout of this breaking change.
Fixes#48418
---------
Co-authored-by: Edmo Vamerlatti Costa <11836452+edmocosta@users.noreply.github.com>
Copy file name to clipboardExpand all lines: connector/routingconnector/config.schema.yaml
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ properties:
31
31
items:
32
32
$ref: go.opentelemetry.io/collector/pipeline.id
33
33
error_mode:
34
-
description: 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`.
34
+
description: 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`, but when the `connector.routing.defaultErrorModeIgnore` feature gate is enabled, the default changes to `ignore`.
35
35
$ref: /pkg/ottl.error_mode
36
36
table:
37
37
description: Table contains the routing table for this processor. Required.
|`connector.routing.defaultErrorModeIgnore`| alpha | When enabled, the default error_mode is `ignore` instead of `propagate`. | v0.155.0 | N/A |[Link](https://github.com/open-telemetry/opentelemetry-collector-contrib/issues/48418)|
12
+
13
+
For more information about feature gates, see the [Feature Gates](https://github.com/open-telemetry/opentelemetry-collector/blob/main/featuregate/README.md) documentation.
0 commit comments