Skip to content

Filter processor #554

Answered by tsloughter
psd2ibanity asked this question in Q&A
Discussion options

You must be logged in to vote

Sadly processors in the collector (what you linked to) and in the SDK are different, but similar.

While you can today define multiple processors in your Elixir config you can't transform/filter the spans OnEnd, by spec design. In https://github.com/open-telemetry/opentelemetry-erlang-contrib/blob/bc11851360ce7b4ca73de7ea544b503366e7e118/examples/basic_elixir/config/releases.exs you can see how processors is configured as a list, but the returned Span in one processors OnEnd is no passed to OnEnd of the next processor in the list, so filtering/transforming would be lost.

There has been off and on discussion on how to add such functionality to the Spec, see

open-telemetry/opentelemetry-spec…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by psd2ibanity
Comment options

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