arize-phoenix 4.30.0__py3-none-any.whl → 4.30.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of arize-phoenix might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: arize-phoenix
3
- Version: 4.30.0
3
+ Version: 4.30.1
4
4
  Summary: AI Observability and Evaluation
5
5
  Project-URL: Documentation, https://docs.arize.com/phoenix/
6
6
  Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
@@ -6,7 +6,7 @@ phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
6
6
  phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
7
  phoenix/services.py,sha256=OyML4t2XGnlqF0JXA9_uccL8HslTABxep9Ci7MViKEU,5216
8
8
  phoenix/settings.py,sha256=cO-qgis_S27nHirTobYI9hHPfZH18R--WMmxNdsVUwc,273
9
- phoenix/version.py,sha256=Idu-4Zlthll3kvzYwrUdRM-Kz4cw2w_YQsMF2QSdL9Q,23
9
+ phoenix/version.py,sha256=6kuemPn1sfBumZHqXy38x_dTEfi76ATKEh9dId-Cb78,23
10
10
  phoenix/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  phoenix/core/embedding_dimension.py,sha256=zKGbcvwOXgLf-yrJBpQyKtd-LEOPRKHnUToyAU8Owis,87
12
12
  phoenix/core/model.py,sha256=km_a--PBHOuA337ClRw9xqhOHhrUT6Rl9pz_zV0JYkQ,4843
@@ -254,7 +254,7 @@ phoenix/server/static/assets/vendor-three-DwGkEfCM.js,sha256=0D12ZgKzfKCTSdSTKJB
254
254
  phoenix/server/templates/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
255
255
  phoenix/server/templates/index.html,sha256=dAm0IClgJUdT5AOmjZvtgMg8F_xGrRGv95SAkUyx_kg,4325
256
256
  phoenix/session/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
257
- phoenix/session/client.py,sha256=SqnGTinAIiPGhAXFKu95MTiCHJKn4MMgfk2od2wW9s4,33291
257
+ phoenix/session/client.py,sha256=ju-bjCbASZBK91uO-NvAc1NPCcPc-r_j01Ns2xV3jMA,33854
258
258
  phoenix/session/data_extractor.py,sha256=gkEM3WWZAlWGMfRgQopAQlid4cSi6GNco-sdrGir0qc,2788
259
259
  phoenix/session/evaluation.py,sha256=3a33ilo-WU0F_Ze26lkCMMwni0GGceSXRRBLvP3CI1o,5352
260
260
  phoenix/session/session.py,sha256=3DSpXj_mlRAKnb9aNUkDjph19SLHx32IJSKYcR3r7cw,26994
@@ -295,8 +295,8 @@ phoenix/utilities/logging.py,sha256=lDXd6EGaamBNcQxL4vP1au9-i_SXe0OraUDiJOcszSw,
295
295
  phoenix/utilities/project.py,sha256=8IJuMM4yUMoooPi37sictGj8Etu9rGmq6RFtc9848cQ,436
296
296
  phoenix/utilities/re.py,sha256=PDve_OLjRTM8yQQJHC8-n3HdIONi7aNils3ZKRZ5uBM,2045
297
297
  phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
298
- arize_phoenix-4.30.0.dist-info/METADATA,sha256=go0ab8700SkvxCH0PrtM8ZCkkvJ5-VOQpsMhMLCHk0k,11977
299
- arize_phoenix-4.30.0.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
300
- arize_phoenix-4.30.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
301
- arize_phoenix-4.30.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
302
- arize_phoenix-4.30.0.dist-info/RECORD,,
298
+ arize_phoenix-4.30.1.dist-info/METADATA,sha256=dygvZQ4Y3cjF7a80jliAm0DoupHUB_N3STUVDRmL-D4,11977
299
+ arize_phoenix-4.30.1.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
300
+ arize_phoenix-4.30.1.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
301
+ arize_phoenix-4.30.1.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
302
+ arize_phoenix-4.30.1.dist-info/RECORD,,
phoenix/session/client.py CHANGED
@@ -22,7 +22,6 @@ from typing import (
22
22
  cast,
23
23
  )
24
24
  from urllib.parse import quote, urljoin
25
- from warnings import warn
26
25
 
27
26
  import httpx
28
27
  import pandas as pd
@@ -152,21 +151,37 @@ class Client(TraceDataExtractor):
152
151
  "stop_time is deprecated. Use end_time instead.",
153
152
  )
154
153
  end_time = end_time or stop_time
155
- response = self._client.post(
156
- url=urljoin(self._base_url, "v1/spans"),
157
- params={
158
- "project_name": project_name,
159
- "project-name": project_name, # for backward-compatibility
160
- },
161
- json={
162
- "queries": [q.to_dict() for q in queries],
163
- "start_time": _to_iso_format(normalize_datetime(start_time)),
164
- "end_time": _to_iso_format(normalize_datetime(end_time)),
165
- "limit": limit,
166
- "root_spans_only": root_spans_only,
167
- },
168
- timeout=timeout,
169
- )
154
+ try:
155
+ response = self._client.post(
156
+ url=urljoin(self._base_url, "v1/spans"),
157
+ params={
158
+ "project_name": project_name,
159
+ "project-name": project_name, # for backward-compatibility
160
+ },
161
+ json={
162
+ "queries": [q.to_dict() for q in queries],
163
+ "start_time": _to_iso_format(normalize_datetime(start_time)),
164
+ "end_time": _to_iso_format(normalize_datetime(end_time)),
165
+ "limit": limit,
166
+ "root_spans_only": root_spans_only,
167
+ },
168
+ timeout=timeout,
169
+ )
170
+ except httpx.TimeoutException as error:
171
+ error_message = (
172
+ (
173
+ f"The request timed out after {timeout} seconds. The timeout can be increased "
174
+ "by passing a larger value to the `timeout` parameter "
175
+ "and can be disabled altogether by passing `None`."
176
+ )
177
+ if timeout is not None
178
+ else (
179
+ "The request timed out. The timeout can be adjusted by "
180
+ "passing a number of seconds to the `timeout` parameter "
181
+ "and can be disabled altogether by passing `None`."
182
+ )
183
+ )
184
+ raise TimeoutError(error_message) from error
170
185
  if response.status_code == 404:
171
186
  logger.info("No spans found.")
172
187
  return None
@@ -503,7 +518,6 @@ class Client(TraceDataExtractor):
503
518
  inputs: Iterable[Mapping[str, Any]] = (),
504
519
  outputs: Iterable[Mapping[str, Any]] = (),
505
520
  metadata: Iterable[Mapping[str, Any]] = (),
506
- dataset_description: Optional[str] = None,
507
521
  ) -> Dataset:
508
522
  """
509
523
  Append examples to dataset on the Phoenix server. If `dataframe` or
@@ -537,11 +551,6 @@ class Client(TraceDataExtractor):
537
551
  Returns:
538
552
  A Dataset object with its examples.
539
553
  """
540
- if dataset_description is not None:
541
- warn(
542
- "The `dataset_description` parameter has been deprecated "
543
- "and will be removed in a future release."
544
- )
545
554
  if dataframe is not None or csv_file_path is not None:
546
555
  if dataframe is not None and csv_file_path is not None:
547
556
  raise ValueError(
@@ -838,3 +847,6 @@ def _is_all_dict(seq: Sequence[Any]) -> bool:
838
847
 
839
848
 
840
849
  class DatasetUploadError(Exception): ...
850
+
851
+
852
+ class TimeoutError(Exception): ...
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "4.30.0"
1
+ __version__ = "4.30.1"