Skip to content
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

swallowed exception in Operator.Process #33783

Closed
zeitlinger opened this issue Jun 26, 2024 · 3 comments · Fixed by #33847
Closed

swallowed exception in Operator.Process #33783

zeitlinger opened this issue Jun 26, 2024 · 3 comments · Fixed by #33847
Labels

Comments

@zeitlinger
Copy link
Member

Component(s)

pkg/stanza, pkg/stanza/fileconsumer

What happened?

Description

Some of the usages of

Process(context.Context, *entry.Entry) error
don't check for the error, which can lead to silent errors

Steps to Reproduce

Real config

      filelog/fraud-detection-raw:
        include:
          - /var/log/pods/*/*/*.log      
        operators:
        - id: container-parser
          type: container

Why?

Test

remove this line:

"log.file.path": "/var/log/pods/some_kube-scheduler-kind-control-plane_49cc7c1fd3702c40b2686ea7486091d3/kube-scheduler44/1.log",

Expected Result

error is reported to user

Actual Result

error is silent - you just don't get log messages

Collector version

0.103.0

Environment information

No response

OpenTelemetry Collector configuration

No response

Log output

No response

Additional context

No response

@zeitlinger zeitlinger added bug Something isn't working needs triage New item requiring triage labels Jun 26, 2024
Copy link
Contributor

Pinging code owners:

See Adding Labels via Comments if you do not have permissions to add labels yourself.

@djaglowski djaglowski removed the needs triage New item requiring triage label Jun 28, 2024
@djaglowski
Copy link
Member

Thanks for reporting @zeitlinger. I agree this is a problem. Do you want to make a PR for this?

@zeitlinger
Copy link
Member Author

Thanks for reporting @zeitlinger. I agree this is a problem. Do you want to make a PR for this?

Created #33847

djaglowski added a commit that referenced this issue Jul 9, 2024
**Link to tracking Issue:** Fixes
#33783

**Testing:** 

nothing added

**Documentation:**

not applicable

---------

Co-authored-by: Dan Jaglowski <jaglows3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants