From 97f77ac269df90d43509c1c8ec5e7191960b8e54 Mon Sep 17 00:00:00 2001 From: Abram Date: Fri, 12 Apr 2024 14:12:34 +0100 Subject: [PATCH] Update - fix 307 temporary redirect for POST /traces/ --- .../agenta/client/backend/resources/observability/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agenta-cli/agenta/client/backend/resources/observability/client.py b/agenta-cli/agenta/client/backend/resources/observability/client.py index fe7b1d02b3..dcf3b7d782 100644 --- a/agenta-cli/agenta/client/backend/resources/observability/client.py +++ b/agenta-cli/agenta/client/backend/resources/observability/client.py @@ -181,7 +181,7 @@ def create_traces(self, *, trace: str, spans: typing.List[CreateSpan]) -> Create """ _response = self._client_wrapper.httpx_client.request( "POST", - urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "observability/traces"), + urllib.parse.urljoin(f"{self._client_wrapper.get_base_url()}/", "observability/trace/"), json=jsonable_encoder({"trace": trace, "spans": spans}), headers=self._client_wrapper.get_headers(), timeout=60,