-
Notifications
You must be signed in to change notification settings - Fork 487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(comp/otelcol): component to filter OTEL telemetry #5562
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you very much for this contribution! This has been a much-requested feature. I added a few comments for things we will need to change prior to merging.
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
Appreciate your review effort @ptodev! Other comments totally makes sense to me but there are three with similar concept so I'd like to discuss jointly. I saw that the config schema with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some doc suggestions and questions
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
{{% admonition type="warning" %}} | ||
Exercise caution when using `otelcol.processor.filter`: | ||
|
||
- Make sure you understand the look of the incoming data and test the configuration thoroughly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is meant by "understand the look"? The meaning isn't clear and I'm not sure what to suggest here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should be something akin to understanding the data's schema/format. Let me wordsmith this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Finish in latest commit. PTAL when you have time. Thanks!
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
@hainenber Thank you for pointing this out! I did not realise it. In that case I agree that we can just have the OTTL parameters. We don't need to include these other ones which will be deprecated. |
@hainenber Would you mind addressing @clayton-cornell's comments please, and rebasing the branch? I will then take a final look and will likely merge it. Thanks again very much for your work on this component! |
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
…r.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
…r.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
…r.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
…r.md Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
f52fc18
to
313a278
Compare
@ptodev I've addressed Clayton's comments and rebased the branch. PTAL when you're back. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, it looks good! I left a few minor comments, but the only thing which really needs to be fixed is just the non-working unit test.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please also move the convert() functions for traceConfig
, metricConfig
, and logConfig
to this file (types.go)?
docs/sources/flow/reference/components/otelcol.processor.filter.md
Outdated
Show resolved
Hide resolved
{{% admonition type="note" %}} | ||
Some characters inside River strings [need to be escaped][river-strings] with a `\` character. | ||
For example, the OTTL statement `attributes["grpc"] == true` | ||
is written in River as `attributes[\"grpc\"] == true`. | ||
|
||
[river-strings]: {{< relref "../../config-language/expressions/types_and_values.md/#strings" >}} | ||
{{% /admonition %}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next release of the agent will support raw strings, so I updated some of the documentation in #5636. I'm happy to update the otelcol.processor.filter
docs after your PR is merged though. There's no need to mention raw strings in your PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added reference to use River's raw string. It's good by now?
Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
…r.md Co-authored-by: Paulin Todev <paulin.todev@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Signed-off-by: hainenber <dotronghai96@gmail.com>
Thank you for another review! I've accepted most of your suggested changes and moved the |
* feat(comp/otelcol): component to filter OTEL telemetry --------- Signed-off-by: hainenber <dotronghai96@gmail.com> Co-authored-by: Paulin Todev <paulin.todev@gmail.com> Co-authored-by: Clayton Cornell <131809008+clayton-cornell@users.noreply.github.com>
PR Description
Which issue(s) this PR fixes
Closes #4628
Notes to the Reviewer
PR Checklist