Skip to content
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

Multi org process logger #1575

Open
wants to merge 3 commits into
base: mainline
Choose a base branch
from
Open

Multi org process logger #1575

wants to merge 3 commits into from

Conversation

naddeoa
Copy link
Contributor

@naddeoa naddeoa commented Oct 18, 2024

We need to support multi org workflows. Currently, the process rolling
logger stores all of its profiles keyed off of the dataset id, assuming
that the global whylabs api key applies to all of them more or less.
Technically, its already possible to create custom writers which are the
only things that know about the org but the logger would end up rolling
data for different orgs into the same profiles if they have same org id.

This change allows you to explicitly pass an org id into the logger
which is used for cached profiles when logging. That in combination with
a custom writer factory gets you to multi org logging.

This also updates some of the types for the most recent pyright version,
despite whylogs not actually depending on that yet.

This does end up having to be a breaking change unfortunately, though all
of these logger and actor types are still in the experimental namespace.

@naddeoa naddeoa force-pushed the multi-org-process-logger branch 3 times, most recently from b1c1970 to 8ed8981 Compare October 18, 2024 03:51
We need to support multi org workflows. Currently, the process rolling
logger stores all of its profiles keyed off of the dataset id, assuming
that the global whylabs api key applies to all of them more or less.
Technically, its already possible to create custom writers which are the
only things that know about the org but the logger would end up rolling
data for different orgs into the same profiles if they have same org id.

This change allows you to explicitly pass an org id into the logger
which is used for cached profiles when logging. That in combination with
a custom writer factory gets you to multi org logging.
Copy link
Contributor

@richard-rogers richard-rogers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants