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

[receiver/sqlquery] fail on missing value for logs, collect errors #35189

Conversation

Grandys
Copy link
Contributor

@Grandys Grandys commented Sep 14, 2024

Description:

  • [breaking] Fail if for log column not found in result set (for consistency with metrics behaviour)
  • Instead of fail-fast, collect all errors that occurred when transforming row to metric or log

Link to tracking Issue: #35068

Testing: Added/updated unit tests

Documentation: n/a

Closes #35068

receiver/sqlqueryreceiver/logs_receiver.go Outdated Show resolved Hide resolved
@crobert-1 crobert-1 added the ready to merge Code review completed; ready to merge by maintainers label Sep 18, 2024
Copy link
Member

@andrzej-stencel andrzej-stencel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it! Thank you!

@andrzej-stencel andrzej-stencel merged commit 507ec47 into open-telemetry:main Sep 27, 2024
162 of 163 checks passed
@github-actions github-actions bot added this to the next release milestone Sep 27, 2024
jriguera pushed a commit to springernature/opentelemetry-collector-contrib that referenced this pull request Oct 4, 2024
…pen-telemetry#35189)

**Description:** 

* [breaking] Fail if for log column not found in result set (for
consistency with metrics behaviour)
* Instead of fail-fast, collect all errors that occurred when
transforming row to metric or log

**Link to tracking Issue:** open-telemetry#35068

**Testing:** Added/updated unit tests

**Documentation:** n/a

Closes open-telemetry#35068
@Grandys Grandys deleted the sqlquery-fail-on-missing-log-column-collect-errors branch January 29, 2025 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal/sqlquery ready to merge Code review completed; ready to merge by maintainers receiver/sqlquery SQL query receiver
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[receiver/sqlquery] Improve error handling for missing columns in result set
4 participants