Open zeitlinger opened 2 days ago
Pinging code owners:
pkg/stanza/fileconsumer: @djaglowski
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Thanks for reporting @zeitlinger. I agree this is a problem. Do you want to make a PR for this?
Component(s)
pkg/stanza, pkg/stanza/fileconsumer
What happened?
Description
Some of the usages of https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/d78d7bb37d0c84da04ac8a83356eb669ecd75a95/pkg/stanza/operator/operator.go#L40 don't check for the error, which can lead to silent errors
Steps to Reproduce
Real config
Why?
include_file_path: true
is missing - but is required unless you setadd_metadata_from_filepath: false
Test
remove this line: https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/6395ff8916f355d9a2c6d8e837e2e07dd6a4f14f/pkg/stanza/operator/parser/container/parser_test.go#L246
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