-
Notifications
You must be signed in to change notification settings - Fork 156
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
Instrumentation: Add gauge of total number of requests in flight #281
Conversation
@@ -17,13 +15,15 @@ export const metricsMiddleware = (config: MetricsConfig, log: Logger) => { | |||
config.requestDurationBuckets.join(',') | |||
); | |||
|
|||
const excludeRegExp = /^((?!(render)).)*$/; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how come these routes are excluded?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's to exclude all routes that don't contain render
. I'm not sure it's really useful currently but it could be in the future (right now, the only route that is excluded is GET /
)
Should I be able to see these metrics somewhere or are they just logged into console? I have this in my dev.json (default setup):
|
Yes you can see them by calling the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
Add gauge of total number of requests in flight (only for
/render/*
routes).Closes #234