-
Notifications
You must be signed in to change notification settings - Fork 240
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: add stats logging #1204
feat: add stats logging #1204
Conversation
176adb0
to
449bd3c
Compare
@@ -56,6 +61,11 @@ def wrapper(fn): | |||
@flask_app.route(r"%s%s" % (DS_PATH, url), methods=methods) | |||
@functools.wraps(fn) | |||
def handler(**kwargs): | |||
# increment the number of api request counter | |||
stats_logger.incr(API_REQUEST_COUNTER.format(fn.__name__)) |
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.
should we use the url here? it is generic right
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.
url is something like /query_execution/<int:query_execution_id>/
, which will include the parameter types.
* feat: add stats logging * comments
* feat: add stats logging * comments
Adding stats logging support.
Metrics: