8000 feat(api): observability end on err (#3400) · ovh/cds@068a4c5 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 068a4c5

Browse files
yesnaultfsamin
authored andcommitted
feat(api): observability end on err (#3400)
1 parent 3a8012a commit 068a4c5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

engine/api/router.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ func (r *Router) Handle(uri string, handlers ...*service.HandlerConfig) {
230230

231231
if err := rc.Handler(ctx, w, req); err != nil {
232232
observability.Record(ctx, r.Stats.Errors, 1)
233+
observability.End(ctx, w, req)
233234
service.WriteError(w, req, err)
234235
return
235236
}

0 commit comments

Comments
 (0)
0