-
Notifications
You must be signed in to change notification settings - Fork 14k
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
add timing to stats logger #5844
Conversation
247ede0
to
8d9105c
Compare
superset/stats_logger.py
Outdated
@@ -29,6 +29,9 @@ def decr(self, key): | |||
"""Decrement a counter""" | |||
raise NotImplementedError() | |||
|
|||
def timing(self, key, time_in_milliseconds): |
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.
If I'm reading this correctly the value can be either ms or a timedelta
object, thus I wonder if time_in_milliseconds
should simply be delta
or value
(for consistency).
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.
That's true. I'll change it.
Codecov Report
@@ Coverage Diff @@
## master #5844 +/- ##
==========================================
- Coverage 63.73% 63.73% -0.01%
==========================================
Files 368 368
Lines 23221 23225 +4
Branches 2600 2600
==========================================
+ Hits 14801 14803 +2
- Misses 8405 8407 +2
Partials 15 15
Continue to review full report at Codecov.
|
9107a64
to
d7b428f
Compare
d7b428f
to
f185083
Compare
(cherry picked from commit e35bfba)
This PR adds the option to log time into the logging interface in superset.
@john-bodley @mistercrunch