arize-phoenix 3.17.1__py3-none-any.whl → 3.19.0__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.

phoenix/trace/__init__.py CHANGED
@@ -1,5 +1,4 @@
1
- import contextlib
2
- from typing import Iterator
1
+ from openinference.instrumentation import suppress_tracing
3
2
 
4
3
  from .projects import using_project
5
4
  from .span_evaluations import DocumentEvaluations, Evaluations, SpanEvaluations, TraceEvaluations
@@ -12,24 +11,5 @@ __all__ = [
12
11
  "DocumentEvaluations",
13
12
  "TraceEvaluations",
14
13
  "using_project",
14
+ "suppress_tracing",
15
15
  ]
16
-
17
-
18
- @contextlib.contextmanager
19
- def suppress_tracing() -> Iterator[None]:
20
- """
21
- Context manager to pause OpenTelemetry instrumentation.
22
-
23
- Examples:
24
- with suppress_tracing():
25
- # No tracing will occur within this block
26
- ...
27
- """
28
- try:
29
- from opentelemetry.context import _SUPPRESS_INSTRUMENTATION_KEY, attach, detach, set_value
30
- except ImportError:
31
- yield
32
- return
33
- token = attach(set_value(_SUPPRESS_INSTRUMENTATION_KEY, True))
34
- yield
35
- detach(token)
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "3.17.1"
1
+ __version__ = "3.19.0"