langtrace-python-sdk 1.2.12__py3-none-any.whl → 1.2.14__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.
@@ -25,17 +25,17 @@ class OpenAIInstrumentation(BaseInstrumentor):
25
25
  wrap_function_wrapper(
26
26
  "openai.resources.chat.completions",
27
27
  "Completions.create",
28
- chat_completions_create(openai.chat.completions.create, version, tracer),
28
+ chat_completions_create("openai.chat.completions.create", version, tracer),
29
29
  )
30
30
  wrap_function_wrapper(
31
31
  "openai.resources.images",
32
32
  "Images.generate",
33
- images_generate(openai.images.generate, version, tracer),
33
+ images_generate("openai.images.generate", version, tracer),
34
34
  )
35
35
  wrap_function_wrapper(
36
36
  "openai.resources.embeddings",
37
37
  "Embeddings.create",
38
- embeddings_create(openai.embeddings.create, version, tracer),
38
+ embeddings_create("openai.embeddings.create", version, tracer),
39
39
  )
40
40
 
41
41
  def _uninstrument(self, **kwargs):
@@ -52,7 +52,7 @@ def images_generate(original_method, version, tracer):
52
52
  span.set_attribute(field, value)
53
53
  try:
54
54
  # Attempt to call the original method
55
- result = original_method(*args, **kwargs)
55
+ result = wrapped(*args, **kwargs)
56
56
  if kwargs.get("stream") is False or kwargs.get("stream") is None:
57
57
  data = (
58
58
  result.data[0]
@@ -132,7 +132,7 @@ def chat_completions_create(original_method, version, tracer):
132
132
  span.set_attribute(field, value)
133
133
  try:
134
134
  # Attempt to call the original method
135
- result = original_method(*args, **kwargs)
135
+ result = wrapped(*args, **kwargs)
136
136
  if kwargs.get("stream") is False:
137
137
  span.set_attribute("llm.model", result.model)
138
138
  if hasattr(result, "choices") and result.choices is not None:
@@ -345,7 +345,7 @@ def embeddings_create(original_method, version, tracer):
345
345
  span.set_attribute(field, value)
346
346
  try:
347
347
  # Attempt to call the original method
348
- result = original_method(*args, **kwargs)
348
+ result = wrapped(*args, **kwargs)
349
349
  span.set_status(StatusCode.OK)
350
350
  return result
351
351
  except Exception as e:
@@ -1 +1 @@
1
- __version__ = "1.2.12"
1
+ __version__ = "1.2.14"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: langtrace-python-sdk
3
- Version: 1.2.12
3
+ Version: 1.2.14
4
4
  Summary: Python SDK for LangTrace
5
5
  Project-URL: Homepage, https://github.com/Scale3-Labs/langtrace-python-sdk
6
6
  Author-email: Scale3 Labs <engineering@scale3labs.com>
@@ -18,7 +18,7 @@ examples/pinecone_example/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
18
18
  examples/pinecone_example/basic.py,sha256=hdV6-5Fmol9zeyFzDtdabD62vkqUJ4lCHG2YcVNpIpI,933
19
19
  langtrace_python_sdk/__init__.py,sha256=SlHg447-nQBbw8exRNJP_OyHUZ39Sldb7aaQ35hIRm8,262
20
20
  langtrace_python_sdk/langtrace.py,sha256=sWC7WqbOdOUB1sZ_hzLZVp0_Q8fBTRJRMUvOPyO6f20,3170
21
- langtrace_python_sdk/version.py,sha256=dbW85A2PinQCZabwD2DNDTfOE9315GDtQQKAsJP8IXk,23
21
+ langtrace_python_sdk/version.py,sha256=mxzjGyB-ihJR05pHYcBiUe_XT5X9wj6cBHLxOXBhAeM,23
22
22
  langtrace_python_sdk/constants/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
23
23
  langtrace_python_sdk/constants/exporter/langtrace_exporter.py,sha256=OfgvphRBPENwsAizqzka9lFu9aDw-A7ErYJ0atl3bpI,56
24
24
  langtrace_python_sdk/constants/instrumentation/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -49,15 +49,15 @@ langtrace_python_sdk/instrumentation/llamaindex/__init__.py,sha256=47DEQpj8HBSa-
49
49
  langtrace_python_sdk/instrumentation/llamaindex/instrumentation.py,sha256=udDxk87H731x0mRFNr0jdtstfnSwiirxVPo6Z4UWAtY,2430
50
50
  langtrace_python_sdk/instrumentation/llamaindex/patch.py,sha256=wTWmyTD09J44ULGoMVmgmq72VN1H0xmdrISTdzqo1Yw,1985
51
51
  langtrace_python_sdk/instrumentation/openai/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
- langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=6RmbONTwgr8_do92l3ll7-ia4maXMxQVCwPBRRa-3NA,1358
53
- langtrace_python_sdk/instrumentation/openai/patch.py,sha256=ffj5W-R1WtcLkahur2e6s5eYJIGCiV7PkNIA8ZXwP1c,14982
52
+ langtrace_python_sdk/instrumentation/openai/instrumentation.py,sha256=FWb4X0l3u4MtV8NiN6xG9mlIaalvGTcxdB9G-RpmsOg,1364
53
+ langtrace_python_sdk/instrumentation/openai/patch.py,sha256=EFNZ_-B-aIveU7cYgxQFMCn2tx3pcWoAx2Ws5puc8ZY,14958
54
54
  langtrace_python_sdk/instrumentation/pinecone/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
55
55
  langtrace_python_sdk/instrumentation/pinecone/instrumentation.py,sha256=PBkCMiaDr-WXkGfHt9iXtYqyl7a-xIO52pRmUFuMURo,1726
56
56
  langtrace_python_sdk/instrumentation/pinecone/patch.py,sha256=lvWL_xM7mxTQ1D-eY5Gh949c45BAKrN2N5IzKRkUhMY,2142
57
57
  langtrace_python_sdk/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
58
58
  langtrace_python_sdk/utils/llm.py,sha256=4z2e-md_ELXCEuOIRVWracR6qH2pmsOxCqpkuF9_3Nw,1589
59
59
  langtrace_python_sdk/utils/with_root_span.py,sha256=N7ONrcF0myZbHBy5gpQffDbX-Kf63Crsz9szG0i3m08,1889
60
- langtrace_python_sdk-1.2.12.dist-info/METADATA,sha256=gD8Lo6pcTxuqf8X9Di30NSpe7AYvSKGiBmrs2c0otIo,7695
61
- langtrace_python_sdk-1.2.12.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
62
- langtrace_python_sdk-1.2.12.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
63
- langtrace_python_sdk-1.2.12.dist-info/RECORD,,
60
+ langtrace_python_sdk-1.2.14.dist-info/METADATA,sha256=N5mt30DWdsuR2y5BeSiKca5thNdjP9I48_5hKrjt19M,7695
61
+ langtrace_python_sdk-1.2.14.dist-info/WHEEL,sha256=uNdcs2TADwSd5pVaP0Z_kcjcvvTUklh2S7bxZMF8Uj0,87
62
+ langtrace_python_sdk-1.2.14.dist-info/licenses/LICENSE,sha256=QwcOLU5TJoTeUhuIXzhdCEEDDvorGiC6-3YTOl4TecE,11356
63
+ langtrace_python_sdk-1.2.14.dist-info/RECORD,,