Skip to content

Commit 5d671b0

Browse files
committed
added 1 more test file + fixed a bug in the uninstrument method
1 parent d19e256 commit 5d671b0

File tree

2 files changed

+321
-95
lines changed
  • aws-opentelemetry-distro
    • src/amazon/opentelemetry/distro/opentelemetry/instrumentation/langchain_v2
    • tests/amazon/opentelemetry/distro/test-opentelemetry-instrumentation-langchain-v2

2 files changed

+321
-95
lines changed

aws-opentelemetry-distro/src/amazon/opentelemetry/distro/opentelemetry/instrumentation/langchain_v2/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ def _uninstrument(self, **kwargs):
4242
if hasattr(self, "_wrapped"):
4343
for module, name in self._wrapped:
4444
unwrap(module, name)
45+
self.handler = None
4546

4647

4748
class _BaseCallbackManagerInitWrapper:

0 commit comments

Comments
 (0)