arize-phoenix 3.18.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.
- {arize_phoenix-3.18.1.dist-info → arize_phoenix-3.19.0.dist-info}/METADATA +2 -1
- {arize_phoenix-3.18.1.dist-info → arize_phoenix-3.19.0.dist-info}/RECORD +12 -11
- phoenix/core/project.py +152 -11
- phoenix/server/api/types/Evaluation.py +21 -1
- phoenix/server/api/types/Project.py +53 -3
- phoenix/server/api/types/Trace.py +47 -0
- phoenix/server/static/index.js +552 -532
- phoenix/trace/__init__.py +2 -22
- phoenix/version.py +1 -1
- {arize_phoenix-3.18.1.dist-info → arize_phoenix-3.19.0.dist-info}/WHEEL +0 -0
- {arize_phoenix-3.18.1.dist-info → arize_phoenix-3.19.0.dist-info}/licenses/IP_NOTICE +0 -0
- {arize_phoenix-3.18.1.dist-info → arize_phoenix-3.19.0.dist-info}/licenses/LICENSE +0 -0
phoenix/trace/__init__.py
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
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.
|
|
1
|
+
__version__ = "3.19.0"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|