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

Change error to error.message #3987

Merged
merged 1 commit into from
Apr 12, 2017
Merged

Change error to error.message #3987

merged 1 commit into from
Apr 12, 2017

Conversation

ruflin
Copy link
Contributor

@ruflin ruflin commented Apr 11, 2017

Currently error message in metricbeat are written into the error field. In heartbeat error.message is used. To unify the error structure and allow in the future to support things like error.code and others inside the error, error is changed to error.message.

Currently internally all error are just written to error.message. In future PR's an internal logic should be added to support error.code and others so Metricsets, Prospectors etc. can make use of it.

Changes

  • Change error to error.message
  • Move error mappings from heartbeat to libbeat

Closes #3951

@ruflin ruflin added in progress Pull request is currently in progress. libbeat labels Apr 11, 2017
@ruflin ruflin force-pushed the error-message branch 2 times, most recently from e005c47 to dfb3c57 Compare April 11, 2017 12:41
@ruflin ruflin added the review label Apr 11, 2017
Currently error message in metricbeat are written into the `error` field. In heartbeat `error.message` is used. To unify the error structure and allow in the future to support things like `error.code` and others inside the error, `error` is changed to `error.message`.

Currently internally all `error` are just written to `error.message`. In future PR's an internal logic should be added to support `error.code` and others so  Metricsets, Prospectors etc. can make use of it.

Changes

* Change `error` to `error.message`
* Move error mappings from heartbeat to libbeat

Closes elastic#3951
@ruflin ruflin removed the in progress Pull request is currently in progress. label Apr 12, 2017
@ruflin ruflin requested a review from tsg April 12, 2017 08:28
Copy link
Contributor

@tsg tsg left a comment

Choose a reason for hiding this comment

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

LGTM.

@tsg tsg merged commit c27aab4 into elastic:master Apr 12, 2017
@ruflin ruflin deleted the error-message branch April 12, 2017 12:25
@tsg tsg mentioned this pull request Jul 24, 2017
28 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants