traceAI-langchain 0.2.1__tar.gz → 0.2.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: traceAI-langchain
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: OpenTelemetry instrumentation for LangChain
5
5
  License: Apache-2.0
6
6
  Keywords: traceai,futureagi,opentelemetry,tracing,observability,llm,langchain
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "traceAI-langchain"
3
- version = "0.2.1"
3
+ version = "0.2.2"
4
4
  description = "OpenTelemetry instrumentation for LangChain"
5
5
  authors = ["Future AGI <no-reply@futureagi.com>"]
6
6
  readme = "README.md"
@@ -70,6 +70,7 @@ class LangChainInstrumentor(BaseInstrumentor): # type: ignore
70
70
  name="BaseCallbackManager.__init__",
71
71
  wrapper=_BaseCallbackManagerInit(self._tracer),
72
72
  )
73
+ self._protect_class = Protect
73
74
  if Protect is not None:
74
75
  self._original_protect = Protect.protect
75
76
  wrap_function_wrapper(
@@ -83,6 +84,10 @@ class LangChainInstrumentor(BaseInstrumentor): # type: ignore
83
84
  def _uninstrument(self, **kwargs: Any) -> None:
84
85
  langchain_core.callbacks.BaseCallbackManager.__init__ = self._original_callback_manager_init # type: ignore
85
86
  self._original_callback_manager_init = None # type: ignore
87
+ if self._protect_class is not None:
88
+ self._protect_class.protect = self._original_protect
89
+ self._original_protect = None
90
+ self._protect_class = None
86
91
  self._tracer = None
87
92
  self.fi_tracer = None
88
93
 
@@ -0,0 +1 @@
1
+ __version__ = "0.2.2" # x-release-please-version
@@ -1 +0,0 @@
1
- __version__ = "0.2.1" # x-release-please-version