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

[exporter/logicmonitor] Update the lm-data-sdk-go version to v1.2.0 and fix error handling issue #30431

Merged
merged 2 commits into from
Jan 12, 2024

Conversation

avadhut123pisal
Copy link
Contributor

@avadhut123pisal avadhut123pisal commented Jan 11, 2024

Description:
Fixing a bug - Using the updated version (v1.2.0) of lm-data-sdk-go causes each error to be considered as a permanent. This PR updates the version as well as changes the error handling to fix this issue.

Link to tracking Issue: NA

Testing: Unit and functional testing.
Documentation: NA

Copy link
Member

@mx-psi mx-psi left a comment

Choose a reason for hiding this comment

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

Does this need a changelog?

@avadhut123pisal
Copy link
Contributor Author

Does this need a changelog?

I don't think so.

@avadhut123pisal
Copy link
Contributor Author

cc: @khyatigandhi6

@khyatigandhi6
Copy link
Contributor

Changes looks good to me. No change log required as error handling is done as internal implementation.
Approved!

@mx-psi mx-psi added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Jan 11, 2024
Comment on lines -51 to -53
if ingestResponse.Success {
return nil
}
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand why this has been removed

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because, with the updated SDK implementation if there is non empty error, then this success flag in the response is always false, so no need to check that explicitly and if error is nil then it is always true.

Copy link
Member

Choose a reason for hiding this comment

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

Thanks for the explanation :) LGTM!

@mx-psi mx-psi merged commit 0f50904 into open-telemetry:main Jan 12, 2024
85 checks passed
@github-actions github-actions bot added this to the next release milestone Jan 12, 2024
cparkins pushed a commit to AmadeusITGroup/opentelemetry-collector-contrib that referenced this pull request Feb 1, 2024
…nd fix error handling issue (open-telemetry#30431)

**Description:** <Describe what has changed.>
Fixing a bug - Using the updated version (v1.2.0) of `lm-data-sdk-go`
causes each error to be considered as a permanent. This PR updates the
version as well as changes the error handling to fix this issue.

**Link to tracking Issue:** NA

**Testing:** Unit and functional testing.
**Documentation:** NA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmd/configschema configschema command cmd/otelcontribcol otelcontribcol command exporter/logicmonitor Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants