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

Report code on metrics when error #92

Merged
merged 1 commit into from
Feb 28, 2019
Merged

Report code on metrics when error #92

merged 1 commit into from
Feb 28, 2019

Conversation

henrod
Copy link
Contributor

@henrod henrod commented Feb 26, 2019

Send code on metrics report when error. This helps filtering errors by using the tag "code".

Code is reported empty in case of not error. I'm not sure if this is the best thing to do but pitaya doesn't enforce code on responses, only on errors.

Since the tests will come on next commits, this is a WIP.

@henrod henrod requested a review from andrehp February 26, 2019 17:13
agent/agent.go Outdated Show resolved Hide resolved
@henrod henrod changed the title [WIP] Report code on metrics when error Report code on metrics when error Feb 27, 2019
Copy link
Contributor

@andrehp andrehp left a comment

Choose a reason for hiding this comment

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

Good job

@andrehp andrehp merged commit 3531bd8 into master Feb 28, 2019
@henrod henrod deleted the feature/report-code branch April 9, 2019 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants