Skip to content

Commit

Permalink
Use the v1 version of the log api
Browse files Browse the repository at this point in the history
  • Loading branch information
naddeoa committed Nov 14, 2024
1 parent 091896d commit a74b1cb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions python/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ whylogs-sketching = ">=3.4.1.dev3"
protobuf = ">=3.19.4"
importlib-metadata = { version = "<4.3", python = "<3.8" }
typing-extensions = { version = ">=3.10", markers = "python_version < \"4\""}
whylabs-client = "^0.6.5"
whylabs-client = "^0.6.15-dev0"
requests = "^2.27"
backoff = "^2.2.1"
platformdirs = "^3.5.0"
Expand Down
1 change: 1 addition & 0 deletions python/whylogs/api/writer/whylabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ def _get_writer(self, writer_type) -> WhyLabsWriterBase:
None, # self._whylabs_client._api_client, # TODO: handle custom client
self._whylabs_client._ssl_ca_cert, # type: ignore
self._whylabs_client._timeout_seconds, # type: ignore
self._whylabs_client,
)

@deprecated_alias(profile="file")
Expand Down
2 changes: 1 addition & 1 deletion python/whylogs/api/writer/whylabs_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ def _post_log_async(
jitter=backoff.full_jitter,
)
def do_request():
return log_api.log_async(org_id=self._org_id, dataset_id=self._dataset_id, log_async_request=request)
return log_api.log_profile(x_whylabs_resource=self._dataset_id, log_async_request=request)

try:
result = do_request()
Expand Down

0 comments on commit a74b1cb

Please sign in to comment.