What is the point of the output
attribute of a stanza/operator?
#40810
-
The filelog README says:
What's the point? Since the As far as I know, the only way to conditionally skip operators is to use the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
I found the documentation that contains the necessary information: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.128.0/pkg/stanza/docs/types/operators.md#non-linear-sequences So I was half-right: To construct conditional operator-sequences, you have to use the |
Beta Was this translation helpful? Give feedback.
-
I am happy to admit that my initial assumption was wrong: Operators can be conditional without a It looks like every operator that has an I found this imformation burried in the It doesn't seem to be mentioned anywhere in any document in https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/v0.128.0/pkg/stanza/docs/types, which seems like an oversight. |
Beta Was this translation helpful? Give feedback.
I am happy to admit that my initial assumption was wrong: Operators can be conditional without a
router
!It looks like every operator that has an
on_error
attribute also has anif
attribute:opentelemetry-collector-contrib/pkg/stanza/operator/helper/transformer.go
Lines 30 to 34 in 723a25e
I found this imformation burried in the
container
parser docs: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/v0.128.0/pkg/stanza/docs/operators/container.md#configuration-fieldsIt doesn't seem to…