-
Notifications
You must be signed in to change notification settings - Fork 0
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
[FEATURE] Capture metrics #136
Conversation
Signed-off-by: Deepak <[email protected]>
Signed-off-by: Deepak <[email protected]>
Signed-off-by: Deepak <[email protected]>
Signed-off-by: Deepak <[email protected]>
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.
LGTM - here are few suggestions for later
- Try using a base interface to inherit / implement necessary metrics capturing attributes and functions. With the current logic it might not be easy to extend to other parts of the SDK in a robust fashion
- Usage reason /
self.__class__.__name__
can be a part of this metrics dict returned by the mixin class
@Deepak-Kesavan can you also ensure that errors during the metrics collection are suppressed and logged as a warning to not prevent the user from accessing something? |
Signed-off-by: Deepak <[email protected]>
Signed-off-by: Deepak <[email protected]>
Signed-off-by: Deepak <[email protected]>
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.
LGTM overall. @Deepak-Kesavan you might want to catch any exceptions coming from the wrapper / MetricsMixin and log them as warnings to not block a user from executing something
Signed-off-by: Deepak <[email protected]>
Signed-off-by: Deepak <[email protected]>
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.
Changes look fine.
What
MetricsMixin
to capture time taken in each stepcapture_metrics
decorator functionWhy
How
...
Relevant Docs
Related Issues or PRs
Zipstack/unstract#900
Dependencies Versions / Env Variables
Notes on Testing
...
Screenshots
...
Checklist
I have read and understood the Contribution Guidelines.