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

Use the v1 version of the log api #1589

Open
wants to merge 1 commit into
base: mainline
Choose a base branch
from
Open

Use the v1 version of the log api #1589

wants to merge 1 commit into from

Conversation

naddeoa
Copy link
Contributor

@naddeoa naddeoa commented Nov 14, 2024

This switches from the v0 to the v1 profile upload api, replacing the previous use of log_async in the whylabs client with log_profile. The apis are functionally the same but the dataset id and the org id are specified differently. The dataset id has to be supplied via a different name and ends up as a header in the request, while the org id is not specified at all because its derived from the api key.

In terms of implementation, I tried to do this all from outside of whylogs to avoid having to make this change but there are several issues that pop up when you try to pass in your own WhylabsClient, and especially your own ApiClient that made that impossible. The refactor looks daunting as well.

Instead, this change just passes on the WhylabsClient to the other "sub writers" that are secretly made in the whylabs writer, and hard codes the use of the v1 api over the v0 api.

@richard-rogers
Copy link
Contributor

Some of the integration tests are failing. Investigating...

@richard-rogers
Copy link
Contributor

Some of the integration tests are failing. Investigating...

Some just look like the mocks for injecting throttling need to be adjusted for V1.
More concerning, some fail to retrieve the uploaded profiles. That could just be the platform running slow or something more serious.

There are also some transaction test failures I haven't looked at yet.

@richard-rogers
Copy link
Contributor

There are integration tests failing on mainline too, so maybe some of this is a backend problem.

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