lmnr 0.4.45__py3-none-any.whl → 0.4.47__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.
@@ -3,7 +3,6 @@ from functools import wraps
3
3
  import logging
4
4
  import os
5
5
  import pydantic
6
- import traceback
7
6
  import types
8
7
  from typing import Any, Optional
9
8
 
@@ -192,14 +191,5 @@ def _should_send_prompts():
192
191
 
193
192
 
194
193
  def _process_exception(span: Span, e: Exception):
195
- exception_path = [type(e).__module__] if type(e).__module__ != "builtins" else []
196
- exception_path.append(type(e).__qualname__)
197
- span.add_event(
198
- "exception",
199
- {
200
- "exception.message": str(e),
201
- "exception.type": ".".join(exception_path),
202
- "exception.stacktrace": traceback.format_exc(),
203
- "exception.escaped": True,
204
- },
205
- )
194
+ # Note that this `escaped` is sent as a StringValue("True"), not a boolean.
195
+ span.record_exception(e, escaped=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: lmnr
3
- Version: 0.4.45
3
+ Version: 0.4.47
4
4
  Summary: Python SDK for Laminar AI
5
5
  License: Apache-2.0
6
6
  Author: lmnr.ai
@@ -78,6 +78,7 @@ Requires-Dist: opentelemetry-semantic-conventions-ai (==0.4.2)
78
78
  Requires-Dist: pydantic (>=2.7)
79
79
  Requires-Dist: python-dotenv (>=1.0)
80
80
  Requires-Dist: requests (>=2.0)
81
+ Requires-Dist: tenacity (>=8.0)
81
82
  Requires-Dist: tqdm (>=4.0)
82
83
  Description-Content-Type: text/markdown
83
84
 
@@ -5,7 +5,7 @@ lmnr/openllmetry_sdk/.python-version,sha256=9OLQBQVbD4zE4cJsPePhnAfV_snrPSoqEQw-
5
5
  lmnr/openllmetry_sdk/__init__.py,sha256=vVSGTAwUnJvdulHtslkGAd8QCBuv78WUK3bgfBpH6Do,2390
6
6
  lmnr/openllmetry_sdk/config/__init__.py,sha256=DliMGp2NjYAqRFLKpWQPUKjGMHRO8QsVfazBA1qENQ8,248
7
7
  lmnr/openllmetry_sdk/decorators/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- lmnr/openllmetry_sdk/decorators/base.py,sha256=xwLsUFd5husf3p-ZllVTYEe9gkwl9T3Bf1WpW1-Ua5I,6413
8
+ lmnr/openllmetry_sdk/decorators/base.py,sha256=rZC5BgLULll0fZFRZ_Oe1XN-BhctKCpTo4TDsKvSfL4,6121
9
9
  lmnr/openllmetry_sdk/instruments.py,sha256=CGGUEELldrXkQwAzAkDeAtDq07_pjhz7i14a92P7C_E,1036
10
10
  lmnr/openllmetry_sdk/tracing/__init__.py,sha256=xT73L1t2si2CM6QmMiTZ7zn-dKKYBLNrpBBWq6WfVBw,68
11
11
  lmnr/openllmetry_sdk/tracing/attributes.py,sha256=B_4KVYWAUu-6DQmsm2eCJQcTxm8pG1EByCBK3uOPkuI,1293
@@ -26,8 +26,8 @@ lmnr/sdk/laminar.py,sha256=4Saelm9m6pB9GWquCdHWY-1VhAB8Q2tWlq6hnmorzHU,31250
26
26
  lmnr/sdk/log.py,sha256=cZBeUoSK39LMEV-X4-eEhTWOciULRfHaKfRK8YqIM8I,1532
27
27
  lmnr/sdk/types.py,sha256=FCNoFoa0ingOvpXGfbiETVsakYyq9Zpoc56MXJ1YDzQ,6390
28
28
  lmnr/sdk/utils.py,sha256=Uk8y15x-sd5tP2ERONahElLDJVEy_3dA_1_5g9A6auY,3358
29
- lmnr-0.4.45.dist-info/LICENSE,sha256=67b_wJHVV1CBaWkrKFWU1wyqTPSdzH77Ls-59631COg,10411
30
- lmnr-0.4.45.dist-info/METADATA,sha256=mA47njgTnxaXCPAvEBOeNIRzsuvicfdIVMVLXe1UUWg,12212
31
- lmnr-0.4.45.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
32
- lmnr-0.4.45.dist-info/entry_points.txt,sha256=K1jE20ww4jzHNZLnsfWBvU3YKDGBgbOiYG5Y7ivQcq4,37
33
- lmnr-0.4.45.dist-info/RECORD,,
29
+ lmnr-0.4.47.dist-info/LICENSE,sha256=67b_wJHVV1CBaWkrKFWU1wyqTPSdzH77Ls-59631COg,10411
30
+ lmnr-0.4.47.dist-info/METADATA,sha256=dqgLT_aaBn35yjuzN0KKfI2BKVPLDIdfibN7PW5HWcw,12244
31
+ lmnr-0.4.47.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
32
+ lmnr-0.4.47.dist-info/entry_points.txt,sha256=K1jE20ww4jzHNZLnsfWBvU3YKDGBgbOiYG5Y7ivQcq4,37
33
+ lmnr-0.4.47.dist-info/RECORD,,
File without changes
File without changes