Skip to content

What is the point of the output attribute of a stanza/operator? #40810

Closed Answered by ChristianCiach
ChristianCiach asked this question in Q&A
Discussion options

You must be logged in to vote

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 an if attribute:

type TransformerConfig struct {
WriterConfig `mapstructure:",squash"`
OnError string `mapstructure:"on_error"`
IfExpr string `mapstructure:"if"`
}

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-fields

It doesn't seem to…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@ChristianCiach
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by ChristianCiach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant