deepeval 3.7.7__py3-none-any.whl → 3.7.8__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.
deepeval/_version.py CHANGED
@@ -1 +1 @@
1
- __version__: str = "3.7.7"
1
+ __version__: str = "3.7.8"
@@ -783,8 +783,8 @@ class Settings(BaseSettings):
783
783
  True, description="Enable metric logging to Confident where supported."
784
784
  )
785
785
 
786
- OTEL_EXPORTER_OTLP_ENDPOINT: Optional[AnyUrl] = Field(
787
- None,
786
+ CONFIDENT_OTEL_URL: Optional[AnyUrl] = Field(
787
+ "https://otel.confident-ai.com",
788
788
  description="OpenTelemetry OTLP exporter endpoint (if using OTEL export).",
789
789
  )
790
790
 
@@ -5,6 +5,7 @@ from opentelemetry.trace import Tracer as OTelTracer
5
5
  from opentelemetry.sdk.trace import SpanProcessor
6
6
  from opentelemetry.sdk.trace import TracerProvider
7
7
  from opentelemetry.sdk.trace.export import BatchSpanProcessor
8
+ from deepeval.config.settings import get_settings
8
9
 
9
10
  try:
10
11
  from opentelemetry.exporter.otlp.proto.http.trace_exporter import (
@@ -26,11 +27,8 @@ def is_opentelemetry_available():
26
27
 
27
28
  from deepeval.confident.api import get_confident_api_key
28
29
 
29
- OTLP_ENDPOINT = (
30
- os.getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
31
- if os.getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
32
- else "https://otel.confident-ai.com"
33
- )
30
+ settings = get_settings()
31
+ OTLP_ENDPOINT = str(settings.CONFIDENT_OTEL_URL)
34
32
  # OTLP_ENDPOINT = "http://127.0.0.1:4318"
35
33
 
36
34
  # Module-level globals to be imported and used by other code
@@ -67,7 +65,7 @@ def init_global_test_run_tracer(api_key: Optional[str] = None):
67
65
 
68
66
  provider = TracerProvider()
69
67
  exporter = OTLPSpanExporter(
70
- endpoint=f"{OTLP_ENDPOINT}/v1/traces",
68
+ endpoint=f"{OTLP_ENDPOINT}v1/traces",
71
69
  headers={"x-confident-api-key": api_key},
72
70
  )
73
71
  provider.add_span_processor(RunIdSpanProcessor())
@@ -27,6 +27,7 @@ from deepeval.tracing.types import (
27
27
  )
28
28
 
29
29
  logger = logging.getLogger(__name__)
30
+ settings = get_settings()
30
31
 
31
32
  try:
32
33
  # Optional dependencies
@@ -48,7 +49,7 @@ except ImportError as e:
48
49
  dependency_installed = False
49
50
 
50
51
  # Preserve previous behavior: only log when verbose mode is enabled.
51
- if get_settings().DEEPEVAL_VERBOSE_MODE:
52
+ if settings.DEEPEVAL_VERBOSE_MODE:
52
53
  if isinstance(e, ModuleNotFoundError):
53
54
  logger.warning(
54
55
  "Optional tracing dependency not installed: %s",
@@ -104,7 +105,8 @@ else:
104
105
  ReadableSpan = _ReadableSpan
105
106
 
106
107
  # OTLP_ENDPOINT = "http://127.0.0.1:4318/v1/traces"
107
- OTLP_ENDPOINT = "https://otel.confident-ai.com/v1/traces"
108
+ # OTLP_ENDPOINT = "https://otel.confident-ai.com/v1/traces"
109
+ OTLP_ENDPOINT = str(settings.CONFIDENT_OTEL_URL) + "v1/traces"
108
110
  init_clock_bridge() # initialize clock bridge for perf_counter() to epoch_nanos conversion
109
111
 
110
112
 
@@ -1,6 +1,7 @@
1
1
  import warnings
2
2
  from typing import Optional
3
3
  from deepeval.telemetry import capture_tracing_integration
4
+ from deepeval.config.settings import get_settings
4
5
 
5
6
  try:
6
7
  from opentelemetry import trace
@@ -23,7 +24,10 @@ def is_opentelemetry_available():
23
24
  return True
24
25
 
25
26
 
26
- OTLP_ENDPOINT = "https://otel.confident-ai.com/v1/traces"
27
+ settings = get_settings()
28
+ # OTLP_ENDPOINT = "https://otel.confident-ai.com/v1/traces"
29
+
30
+ OTLP_ENDPOINT = str(settings.CONFIDENT_OTEL_URL) + "v1/traces"
27
31
 
28
32
 
29
33
  def instrument_pydantic_ai(api_key: Optional[str] = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: deepeval
3
- Version: 3.7.7
3
+ Version: 3.7.8
4
4
  Summary: The LLM Evaluation Framework
5
5
  Home-page: https://github.com/confident-ai/deepeval
6
6
  License: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  deepeval/__init__.py,sha256=tle4lT4FONApg3OeztGPEdrpGMEGLWajyGTu7bEd3s0,2976
2
- deepeval/_version.py,sha256=hC0elRVc8djlYzfR9jyhELyggcmaoicVm2yXSx7dU1w,27
2
+ deepeval/_version.py,sha256=6yo6b2iIyXO63FAYhFCVk8i3he3CS68LFE8qtXaj7_A,27
3
3
  deepeval/annotation/__init__.py,sha256=ZFhUVNNuH_YgQSZJ-m5E9iUb9TkAkEV33a6ouMDZ8EI,111
4
4
  deepeval/annotation/annotation.py,sha256=3j3-syeJepAcEj3u3e4T_BeRDzNr7yXGDIoNQGMKpwQ,2298
5
5
  deepeval/annotation/api.py,sha256=EYN33ACVzVxsFleRYm60KB4Exvff3rPJKt1VBuuX970,2147
@@ -147,7 +147,7 @@ deepeval/confident/types.py,sha256=9bgePDaU31yY7JGwCLZcc7pev9VGtNDZLbjsVpCLVdc,5
147
147
  deepeval/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
148
148
  deepeval/config/dotenv_handler.py,sha256=lOosoC7fm9RljriY8EFl5ywSGfSiQsVf_vmYqzpbZ8s,588
149
149
  deepeval/config/logging.py,sha256=ivqmhOSB-oHOOU3MvnhImrZwkkxzxKJgoKxesnWfHjg,1314
150
- deepeval/config/settings.py,sha256=7K1PWWu4mwVyQWTA2su1Blep-TBJp40LBxJb8JURnkA,56565
150
+ deepeval/config/settings.py,sha256=uNFhulnSi07-uQfy6PxRPYK2EsCkdyq99fQCIOS_BpY,56583
151
151
  deepeval/config/settings_manager.py,sha256=Ynebm2BKDrzajc6DEq2eYIwyRAAtUQOkTnl46albxLk,4187
152
152
  deepeval/config/utils.py,sha256=bJGljeAXoEYuUlYSvHSOsUnqINTwo6wOwfFHFpWxiaQ,4238
153
153
  deepeval/constants.py,sha256=J5rNXGsMKTFYJ_9Wi49qchZXuUityZjnvuy3I3TO5zk,1667
@@ -156,7 +156,7 @@ deepeval/dataset/__init__.py,sha256=N2c-rkuxWYiiJSOZArw0H02Cwo7cnfzFuNYJlvsIBEg,
156
156
  deepeval/dataset/api.py,sha256=bZ95HfIaxYB1IwTnp7x4AaKXWuII17T5uqVkhUXNc7I,1650
157
157
  deepeval/dataset/dataset.py,sha256=Y9U-hVoa5BbnlzwJiFiDTkDcp9E6VmKOd7NtyLmdpHY,59182
158
158
  deepeval/dataset/golden.py,sha256=zuUUih0PBuHGaXo0zNyzwGLL-PT-ScZ3vofexDBuBzY,7326
159
- deepeval/dataset/test_run_tracer.py,sha256=5CdpDvhzkEEBRyqWi6egocaxiN6IRS3XfbACxEQZQeM,2544
159
+ deepeval/dataset/test_run_tracer.py,sha256=RiINq8743l0D1M0FKuQRN05v0-xO4BYdUp1xHjHSGAo,2514
160
160
  deepeval/dataset/types.py,sha256=CWeOIBPK2WdmRUqjFa9gfN-w2da0r8Ilzl3ToDpJQoQ,558
161
161
  deepeval/dataset/utils.py,sha256=nWCNmD1kyLwvlCXlN-7XiqN2W7IUOkDckc1xl32MF-U,8042
162
162
  deepeval/errors.py,sha256=FfhtULNIQqHpKVqCr-xlvTtLxkNj40qVU89sXYKuDrA,754
@@ -188,8 +188,8 @@ deepeval/integrations/llama_index/handler.py,sha256=uTvNXmAF4xBh8t9bBm5sBFX6ETp8
188
188
  deepeval/integrations/llama_index/utils.py,sha256=onmmo1vpn6cpOY5EhfTc0Uui7X6l1M0HD3sq-KVAesg,3380
189
189
  deepeval/integrations/pydantic_ai/__init__.py,sha256=UIkXn_g6h9LTQXG1PaWu1eCFkCssIwG48WSvN46UWgU,202
190
190
  deepeval/integrations/pydantic_ai/agent.py,sha256=-NKvpTUw3AxRNhuxVFcx9mw5BWCujzOwsaC8u7K0ubc,1178
191
- deepeval/integrations/pydantic_ai/instrumentator.py,sha256=oXU3Q4ROER0e4nCYq1xKpu8cvG1p632YeM5p9wkNpks,11837
192
- deepeval/integrations/pydantic_ai/otel.py,sha256=0OuIpmaMtEt1dFWFZtYAiZ9hVCWweEWr1TRHYcDb4I8,1918
191
+ deepeval/integrations/pydantic_ai/instrumentator.py,sha256=Us9LSYZWMfaeAc7PGXMDYWzjWKFVmhRvZrFhSvmk448,11922
192
+ deepeval/integrations/pydantic_ai/otel.py,sha256=CCqwCJ5pHqCzHgujHQqZy7Jxo2PH1BT0kR7QxdtzutY,2060
193
193
  deepeval/integrations/pydantic_ai/test_instrumentator.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
194
194
  deepeval/key_handler.py,sha256=x4lUC-zo18Xucf_sm3wJ5Xr-frSi4xscL5hO283JYr8,9247
195
195
  deepeval/metrics/__init__.py,sha256=19Df323r8aAlx2sRfV9BHJLicORhTLpogR8M1deJetw,4680
@@ -519,8 +519,8 @@ deepeval/tracing/tracing.py,sha256=VCvFrPdBPSu1tL6xGswgOcCGBk-bU25wrcWAKD_8Uf0,4
519
519
  deepeval/tracing/types.py,sha256=WhnxefUc5I8jcAOBQ-tsZ8_zVZfGqSvCWHD5XUN6Ggw,6040
520
520
  deepeval/tracing/utils.py,sha256=mdvhYAxDNsdnusaEXJd-c-_O2Jn6S3xSuzRvLO1Jz4U,5684
521
521
  deepeval/utils.py,sha256=_DTCUD-nAC8mVgyYf4sPBpguq8Da9G62Fgvi9AR82K8,26765
522
- deepeval-3.7.7.dist-info/LICENSE.md,sha256=0ATkuLv6QgsJTBODUHC5Rak_PArA6gv2t7inJzNTP38,11352
523
- deepeval-3.7.7.dist-info/METADATA,sha256=5jB5mDWkgfJU0HZ14v7sfdQoDIDW0LMeYTVbN18XNlQ,18662
524
- deepeval-3.7.7.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
525
- deepeval-3.7.7.dist-info/entry_points.txt,sha256=NoismUQfwLOojSGZmBrdcpwfaoFRAzUhBvZD3UwOKog,95
526
- deepeval-3.7.7.dist-info/RECORD,,
522
+ deepeval-3.7.8.dist-info/LICENSE.md,sha256=0ATkuLv6QgsJTBODUHC5Rak_PArA6gv2t7inJzNTP38,11352
523
+ deepeval-3.7.8.dist-info/METADATA,sha256=nnOtZFHQ4RyGnxbQhyOqoevBsAnKgtiKMiauPtYelkA,18662
524
+ deepeval-3.7.8.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
525
+ deepeval-3.7.8.dist-info/entry_points.txt,sha256=NoismUQfwLOojSGZmBrdcpwfaoFRAzUhBvZD3UwOKog,95
526
+ deepeval-3.7.8.dist-info/RECORD,,