You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Many of the whylogs examples use why.init() which results in automatic uploading of profiles while logging. This is confusing when adapting the code to production use cases where you want to decouple the profiling and manage the upload explicitly with a WhyLabsWriter.
Suggestions
Create an opt-in parameter for automatic uploads of profiles, and update examples to use that.
Change default behavior to not automatically upload profiles while logging.
Detect when there is an existing authenticated session and opted in for automatic uploads in the WhyLabsWriter and log a warning to the user to help give visibility into the scenario where users upload the same profile twice unintentionally.
Consider allowing anonymous sessions to automatically upload, and make this behavior scoped to anonymous sessions.
## Description
Updates `init()` docstring to describe `upload_on_log`
## Related
Relates to #1570
- [ ] I have reviewed the [Guidelines for Contributing](CONTRIBUTING.md)
and the [Code of Conduct](CODE_OF_CONDUCT.md).
Description
Many of the whylogs examples use why.init() which results in automatic uploading of profiles while logging. This is confusing when adapting the code to production use cases where you want to decouple the profiling and manage the upload explicitly with a WhyLabsWriter.
Suggestions
The text was updated successfully, but these errors were encountered: