lmnr 0.7.9__py3-none-any.whl → 0.7.10__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.
@@ -219,8 +219,19 @@ class TracerWrapper(object):
219
219
 
220
220
  @classmethod
221
221
  def verify_initialized(cls) -> bool:
222
- with cls._lock:
223
- return hasattr(cls, "instance") and hasattr(cls.instance, "_span_processor")
222
+ # This is not using lock, but it is fine to return False from here
223
+ # even if initialization is going on.
224
+
225
+ # If we try to acquire the lock here, it may deadlock if an automatic
226
+ # instrumentation is importing a file that (at the top level) has a
227
+ # function annotated with Laminar's `observe` decorator.
228
+ # The decorator is evaluated at import time, inside `init_instrumentations`,
229
+ # which is called by the `TracerWrapper` constructor while holding the lock.
230
+ # Without the lock here, we will simply return False, which will cause
231
+ # the decorator to return the original function. This is fine, at runtime,
232
+ # the next import statement will re-evaluate the decorator, and Laminar will
233
+ # have been initialized by that time.
234
+ return hasattr(cls, "instance") and hasattr(cls.instance, "_span_processor")
224
235
 
225
236
  @classmethod
226
237
  def clear(cls):
lmnr/version.py CHANGED
@@ -3,7 +3,7 @@ import httpx
3
3
  from packaging import version
4
4
 
5
5
 
6
- __version__ = "0.7.9"
6
+ __version__ = "0.7.10"
7
7
  PYTHON_VERSION = f"{sys.version_info.major}.{sys.version_info.minor}"
8
8
 
9
9
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lmnr
3
- Version: 0.7.9
3
+ Version: 0.7.10
4
4
  Summary: Python SDK for Laminar
5
5
  Author: lmnr.ai
6
6
  Author-email: lmnr.ai <founders@lmnr.ai>
@@ -46,7 +46,7 @@ lmnr/opentelemetry_lib/opentelemetry/instrumentation/openhands_ai/__init__.py,sh
46
46
  lmnr/opentelemetry_lib/opentelemetry/instrumentation/opentelemetry/__init__.py,sha256=1f86cdf738e2f68586b0a4569bb1e40edddd85c529f511ef49945ddb7b61fab5,2648
47
47
  lmnr/opentelemetry_lib/opentelemetry/instrumentation/skyvern/__init__.py,sha256=764e4fe979fb08d7821419a3cc5c3ae89a6664b626ef928259f8f175c939eaea,6334
48
48
  lmnr/opentelemetry_lib/opentelemetry/instrumentation/threading/__init__.py,sha256=90aa8558467d7e469fe1a6c75372c113da403557715f03b522b2fab94b287c40,6320
49
- lmnr/opentelemetry_lib/tracing/__init__.py,sha256=b96aee7590af1853fffc4c3d8ce9127a67e1ce589f695a99aabe6b37d70b0e48,10203
49
+ lmnr/opentelemetry_lib/tracing/__init__.py,sha256=69dd8575908cedfebd29cd48c288cbf2cca1f689c469266bcdf79c7351bed99d,10979
50
50
  lmnr/opentelemetry_lib/tracing/_instrument_initializers.py,sha256=f66dbe208fc1bd4075c0725561f6151a4c7622e6ecfa961b7ad6674d18dfb97f,15180
51
51
  lmnr/opentelemetry_lib/tracing/attributes.py,sha256=a879e337ff4e8569a4454544d303ccbc3b04bd42e1cdb765eb563aeaa08f731d,1653
52
52
  lmnr/opentelemetry_lib/tracing/context.py,sha256=83f842be0fc29a96647cbf005c39ea761b0fb5913c4102f965411f47906a6135,4103
@@ -93,8 +93,8 @@ lmnr/sdk/laminar.py,sha256=24d680407ce694f1a7ec0e9c0524eae3deb7d638ad5caff3a591d
93
93
  lmnr/sdk/log.py,sha256=9edfd83263f0d4845b1b2d1beeae2b4ed3f8628de941f371a893d72b79c348d4,2213
94
94
  lmnr/sdk/types.py,sha256=f8a8368e225c4d2f82df54d92f029065afb60c3eff494c77c6e574963ed524ff,13454
95
95
  lmnr/sdk/utils.py,sha256=0c5a81c305dcd3922f4b31c4f42cf83719c03888725838395adae167de92db76,5019
96
- lmnr/version.py,sha256=e9882c4c3fde6de255d516c74b58299c7fe25676f330f27a192a16c01106c4a5,1321
97
- lmnr-0.7.9.dist-info/WHEEL,sha256=ab6157bc637547491fb4567cd7ddf26b04d63382916ca16c29a5c8e94c9c9ef7,79
98
- lmnr-0.7.9.dist-info/entry_points.txt,sha256=abdf3411b7dd2d7329a241f2da6669bab4e314a747a586ecdb9f888f3035003c,39
99
- lmnr-0.7.9.dist-info/METADATA,sha256=c80f3d2e429443e6bfa13bf62b50521954560a51c88164ab4b83894e3b0ab27b,14196
100
- lmnr-0.7.9.dist-info/RECORD,,
96
+ lmnr/version.py,sha256=48d75ef1a4cb17129f08ba377d3d2cf2b0d890885a5af6fa712d800ca61a4792,1322
97
+ lmnr-0.7.10.dist-info/WHEEL,sha256=ab6157bc637547491fb4567cd7ddf26b04d63382916ca16c29a5c8e94c9c9ef7,79
98
+ lmnr-0.7.10.dist-info/entry_points.txt,sha256=abdf3411b7dd2d7329a241f2da6669bab4e314a747a586ecdb9f888f3035003c,39
99
+ lmnr-0.7.10.dist-info/METADATA,sha256=40cff9ae72702f1343bf115e744a012c3859d56dd25e55c1d8b13ee6b3475cd1,14197
100
+ lmnr-0.7.10.dist-info/RECORD,,
File without changes