Skip to content

swallowed exception in Operator.Process #33783

@zeitlinger

Description

@zeitlinger

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions