Add metrics to webhook package#503
Conversation
Add metricstest package for shared helper functions for testing metrics
|
/retest |
vagababov
left a comment
There was a problem hiding this comment.
In general looks fine.
|
@vagababov thanks for taking the time to review! |
|
/lgtm /assign @evankanderson |
evankanderson
left a comment
There was a problem hiding this comment.
A few small notes and maybe one bug.
/approve
/hold
in case I caught a real bug. All the comments beyond the first are nits that you can ignore if you want.
Once you've addressed (Works As Intended or pushed another commit), feel free to remove the hold.
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: anniefu, evankanderson The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/hold cancel |
|
This is causing NPE in eventing. |
| } | ||
|
|
||
| // Only report valid requests | ||
| ac.StatsReporter.ReportRequest(review.Request, response.Response, time.Since(ttStart)) |
There was a problem hiding this comment.
This causes a NPE. StatsReporter is new and nil in all repos.
There was a problem hiding this comment.
Ah yes, that makes sense. I was pulling this in and making the changes in the serving repo to initialize this correctly, but I forgot this was a common package :/
I'll push a fix out in a couple of hours or roll it back.
Metrics added:
Other:
See knative/serving#1279