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

[pkg/stanza] Don't get formatted msg for events without an event provider #35227

Conversation

pjanotti
Copy link
Contributor

Description:
When the event doesn't have a Publisher we should not rely on the behavior of EvtFormatMessage API, given, that in some cases it reports error. Instead we should fallback to the non-formatted message to avoid logging error messages on the collector. See issue #35135.

Link to tracking Issue:
Fix #35135

Testing:
Local validation of the processing of the events reported in the issue.

Documentation:
N/A

@djaglowski djaglowski merged commit f6aa99f into open-telemetry:main Sep 18, 2024
171 of 172 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 18, 2024
@pjanotti pjanotti deleted the treat-empty-event-source-as-an-invalid-provider branch September 18, 2024 22:20
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…ider (open-telemetry#35227)

**Description:**
When the event doesn't have a Publisher we should not rely on the
behavior of `EvtFormatMessage` API, given, that in some cases it reports
error. Instead we should fallback to the non-formatted message to avoid
logging error messages on the collector. See issue open-telemetry#35135.

**Link to tracking Issue:**
Fix open-telemetry#35135

**Testing:**
Local validation of the processing of the events reported in the issue.

**Documentation:**
N/A

---------

Co-authored-by: Daniel Jaglowski <jaglows3@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg/stanza Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Windows Event Log Receiver doesn't collect some legacy events correctly
3 participants