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

feat(api): observability end on err #3400

Merged
merged 2 commits into from
Oct 4, 2018
Merged

feat(api): observability end on err #3400

merged 2 commits into from
Oct 4, 2018

Conversation

yesnault
Copy link
Member

@yesnault yesnault commented Oct 4, 2018

Signed-off-by: Yvonnick Esnault [email protected]

Signed-off-by: Yvonnick Esnault <[email protected]>
@@ -231,6 +231,7 @@ func (r *Router) Handle(uri string, handlers ...*service.HandlerConfig) {
if err := rc.Handler(ctx, w, req); err != nil {
observability.Record(ctx, r.Stats.Errors, 1)
service.WriteError(w, req, err)
observability.End(ctx, w, req)

Choose a reason for hiding this comment

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

Error return value of observability.End is not checked

Signed-off-by: Yvonnick Esnault <[email protected]>
@fsamin fsamin merged commit 068a4c5 into master Oct 4, 2018
@yesnault yesnault deleted the ye-post-middl branch October 16, 2018 19:06
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.

3 participants