- Notifications
You must be signed in to change notification settings - Fork 60
Add AutoGen logger for generating report and integrating with OCI monitoring. #1031
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
Conversation
| # Freeform data | ||
| kwargs: dict = field(default_factory=dict) | ||
| | ||
| def to_dict(self): |
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.
Isn't it better to use the built in protocol for conversion to dict? __dict__
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.
Because the data attribute is another data class, the build in __dict__ does not seem to convert it to a dict, while the asdict() function will convert it to dict recursively.
This PR adds two AutoGen loggers:
SessionLoggersaves events to a log file and generates report to for users to profile and debug the application.MetricLoggersends the metrics to OCI monitoring service, allowing users to build dashboards to gain more insights about the application usage.