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

[Metricbeat] Avoid omitting of errors in Vsphere module and upgrade to use context.Context #12816

Merged
merged 2 commits into from
Jul 18, 2019

Conversation

sayden
Copy link
Contributor

@sayden sayden commented Jul 8, 2019

Some potential error checks are being omitted in vSphere module. They aren't probably key to fetch metrics but they may be hiding important debug information when things go wrong.

This PR prints in debug level if any of those errors have returned information.

At the same time, the PR is upgraded to use context.Contextin Fetch method, recently added to Beats and it may be useful as a background context was being used on the Metricsets.

@sayden sayden added bug Metricbeat Metricbeat Team:Integrations Label for the Integrations team labels Jul 8, 2019
@sayden sayden self-assigned this Jul 8, 2019
@sayden sayden marked this pull request as ready for review July 17, 2019 11:10
@sayden sayden requested a review from a team as a code owner July 17, 2019 11:10
@sayden sayden force-pushed the bugfix/mb/vsphere/do_not_omit_errors branch from 4735abe to 77bdced Compare July 17, 2019 11:12
@sayden sayden added review and removed bug labels Jul 17, 2019
@sayden sayden merged commit 8f8d0b3 into elastic:master Jul 18, 2019
sayden added a commit to sayden/beats that referenced this pull request Jul 22, 2019
@sayden sayden added the v7.3.0 label Jul 22, 2019
@sayden sayden added the v7.2.1 label Jul 22, 2019
sayden added a commit that referenced this pull request Jul 22, 2019
…o use context.Context (#12816) (#13003)

(cherry picked from commit 8f8d0b3)
sayden added a commit to sayden/beats that referenced this pull request Jul 30, 2019
sayden added a commit that referenced this pull request Aug 2, 2019
…sphere module and upgrade to use context.Context (#13004)
@sayden sayden deleted the bugfix/mb/vsphere/do_not_omit_errors branch August 25, 2022 12:53
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
…rs in Vsphere module and upgrade to use context.Context (elastic#13004)
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Metricbeat Metricbeat review Team:Integrations Label for the Integrations team v7.2.1 v7.3.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants