Skip to content

Conversation

@fearful-symmetry
Copy link
Contributor

@fearful-symmetry fearful-symmetry commented Mar 21, 2019

See #11374 and #10727

This was @ruflin and my idea, now that we have a "cleaner" error interface that could potentially remove some boilerplate from Fetch().

We also decided to do this on a module-by-module basis where possible, to avoid spamming with excessive PRs, as each change is rather small. However I'm not set on this, and we could do it metricset-by-metricset if people prefer.

@fearful-symmetry fearful-symmetry added Metricbeat Metricbeat Team:Integrations Label for the Integrations team technical_debt labels Mar 21, 2019
@fearful-symmetry fearful-symmetry requested review from a team and ruflin March 21, 2019 20:41
logger.Error(err)
reporter.Error(err)
return
return errors.Wrap(err, "Error in http fetch")
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: errors inside errors should start lower case. I wonder why Hound did not complain.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oddly enough, the linter I have in vscode usually complains about that as well. Might be more context-dependent?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Metricbeat Metricbeat Team:Integrations Label for the Integrations team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants