arize-phoenix 11.26.0__py3-none-any.whl → 11.27.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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: arize-phoenix
3
- Version: 11.26.0
3
+ Version: 11.27.0
4
4
  Summary: AI Observability and Evaluation
5
5
  Project-URL: Documentation, https://arize.com/docs/phoenix/
6
6
  Project-URL: Issues, https://github.com/Arize-ai/phoenix/issues
@@ -1,12 +1,12 @@
1
1
  phoenix/__init__.py,sha256=Sgb4r2MLoY2BbC9Caky5C0bwnOyiVOMHly2sRItmg3Q,5555
2
2
  phoenix/auth.py,sha256=9rscOefuxy5VPcb6MlOYenuy3gDd5l7RxknONovGslE,11342
3
- phoenix/config.py,sha256=oz-7FW2Pixzgp3Xvs5RM-M7J7mES8_yWdVGo_Tzde9s,63133
3
+ phoenix/config.py,sha256=iZ0KE4Yc7msAwx3MykjhCx79_wSYBL6KTpLA9KuXD9I,63432
4
4
  phoenix/datetime_utils.py,sha256=pRD-nzxXYKlMWNtd3r2tKGKfPFhwuJhfOAtlGLVAO60,8784
5
5
  phoenix/exceptions.py,sha256=n2L2KKuecrdflB9MsCdAYCiSEvGJptIsfRkXMoJle7A,169
6
6
  phoenix/py.typed,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
7
7
  phoenix/services.py,sha256=ngkyKGVatX3cO2WJdo2hKdaVKP-xJCMvqthvga6kJss,5196
8
8
  phoenix/settings.py,sha256=2kHfT3BNOVd4dAO1bq-syEQbHSG8oX2-7NhOwK2QREk,896
9
- phoenix/version.py,sha256=33MeCwATMNgyC4sHJu1Hkcz_RJlu_tRYr7sUaatU7Cw,24
9
+ phoenix/version.py,sha256=ofjFoTgUco9LdD4reUgJGjEcFX2RzUAJpVKpDorgoms,24
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=qBFraOtmwCCnWJltKNP18DDG0mULXigytlFsa6YOz6k,4837
@@ -111,7 +111,7 @@ phoenix/server/api/README.md,sha256=Pyq1PLPgTzXAswrfIhGXrjI3Skq8it2jTVnanT6Ba4Q,
111
111
  phoenix/server/api/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
112
112
  phoenix/server/api/auth.py,sha256=AyYhnZIbY9ALVjg2K6aC2UXSa3Pva5GVDBXyaZ3nD3o,2749
113
113
  phoenix/server/api/context.py,sha256=mqsq_8Ru50e-PxKWNTzh9zptb1PFjYFUf58uW59UYL0,8996
114
- phoenix/server/api/exceptions.py,sha256=E2W0x63CBzc0CoQPptrLr9nZxPF9zIP8MCJ3RuJMddw,1322
114
+ phoenix/server/api/exceptions.py,sha256=9gB4nBRNX6k4_fsQZ12yxw6Tw53h_915l06DYK-qkPQ,1442
115
115
  phoenix/server/api/interceptor.py,sha256=ykDnoC_apUd-llVli3m1CW18kNSIgjz2qZ6m5JmPDu8,1294
116
116
  phoenix/server/api/queries.py,sha256=oA6UWvd7Ff26JZp0gFujV7F6yZoEbUwdOdZOROWG4nM,64654
117
117
  phoenix/server/api/schema.py,sha256=fcs36xQwFF_Qe41_5cWR8wYpDvOrnbcyTeo5WNMbDsA,1702
@@ -442,9 +442,9 @@ phoenix/utilities/project.py,sha256=auVpARXkDb-JgeX5f2aStyFIkeKvGwN9l7qrFeJMVxI,
442
442
  phoenix/utilities/re.py,sha256=6YyUWIkv0zc2SigsxfOWIHzdpjKA_TZo2iqKq7zJKvw,2081
443
443
  phoenix/utilities/span_store.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
444
444
  phoenix/utilities/template_formatters.py,sha256=gh9PJD6WEGw7TEYXfSst1UR4pWWwmjxMLrDVQ_CkpkQ,2779
445
- arize_phoenix-11.26.0.dist-info/METADATA,sha256=bCJdEUSImkT_uKY1K_4vpyilZxDUCYArf2NlStaHvcY,31634
446
- arize_phoenix-11.26.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
447
- arize_phoenix-11.26.0.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
448
- arize_phoenix-11.26.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
449
- arize_phoenix-11.26.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
450
- arize_phoenix-11.26.0.dist-info/RECORD,,
445
+ arize_phoenix-11.27.0.dist-info/METADATA,sha256=QY0OG7N7HMD-gi2_15QJThyeIXch1CDC86bSt9S8vQA,31634
446
+ arize_phoenix-11.27.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
447
+ arize_phoenix-11.27.0.dist-info/entry_points.txt,sha256=Pgpn8Upxx9P8z8joPXZWl2LlnAlGc3gcQoVchb06X1Q,94
448
+ arize_phoenix-11.27.0.dist-info/licenses/IP_NOTICE,sha256=JBqyyCYYxGDfzQ0TtsQgjts41IJoa-hiwDrBjCb9gHM,469
449
+ arize_phoenix-11.27.0.dist-info/licenses/LICENSE,sha256=HFkW9REuMOkvKRACuwLPT0hRydHb3zNg-fdFt94td18,3794
450
+ arize_phoenix-11.27.0.dist-info/RECORD,,
phoenix/config.py CHANGED
@@ -172,6 +172,11 @@ ENV_PHOENIX_SERVER_INSTRUMENTATION_OTLP_TRACE_COLLECTOR_GRPC_ENDPOINT = (
172
172
  "PHOENIX_SERVER_INSTRUMENTATION_OTLP_TRACE_COLLECTOR_GRPC_ENDPOINT"
173
173
  )
174
174
 
175
+ ENV_PHOENIX_MASK_INTERNAL_SERVER_ERRORS = "PHOENIX_MASK_INTERNAL_SERVER_ERRORS"
176
+ """
177
+ Whether to mask internal server errors from the GraphQL and REST APIs. Defaults to true.
178
+ """
179
+
175
180
  # Authentication settings
176
181
  ENV_PHOENIX_ENABLE_AUTH = "PHOENIX_ENABLE_AUTH"
177
182
  ENV_PHOENIX_DISABLE_BASIC_AUTH = "PHOENIX_DISABLE_BASIC_AUTH"
@@ -1610,6 +1615,10 @@ def get_env_disable_migrations() -> bool:
1610
1615
  return _bool_val(ENV_PHOENIX_DANGEROUSLY_DISABLE_MIGRATIONS, False)
1611
1616
 
1612
1617
 
1618
+ def get_env_mask_internal_server_errors() -> bool:
1619
+ return _bool_val(ENV_PHOENIX_MASK_INTERNAL_SERVER_ERRORS, True)
1620
+
1621
+
1613
1622
  DEFAULT_PROJECT_NAME = "default"
1614
1623
  _KUBERNETES_PHOENIX_PORT_PATTERN = re.compile(r"^tcp://\d{1,3}[.]\d{1,3}[.]\d{1,3}[.]\d{1,3}:\d+$")
1615
1624
 
@@ -1,6 +1,8 @@
1
1
  from graphql.error import GraphQLError
2
2
  from strawberry.extensions import MaskErrors
3
3
 
4
+ from phoenix.config import get_env_mask_internal_server_errors
5
+
4
6
 
5
7
  class CustomGraphQLError(Exception):
6
8
  """
@@ -51,4 +53,6 @@ def _should_mask_error(error: GraphQLError) -> bool:
51
53
  """
52
54
  Masks unexpected errors raised from GraphQL resolvers.
53
55
  """
54
- return not isinstance(error.original_error, CustomGraphQLError)
56
+ return get_env_mask_internal_server_errors() and not isinstance(
57
+ error.original_error, CustomGraphQLError
58
+ )
phoenix/version.py CHANGED
@@ -1 +1 @@
1
- __version__ = "11.26.0"
1
+ __version__ = "11.27.0"