Skip to content

Commit

Permalink
implement uninstrument
Browse files Browse the repository at this point in the history
  • Loading branch information
mattoberle committed Feb 12, 2024
1 parent 9e4682a commit 6bfaf34
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ def _instrument(self, **kwargs: Dict[str, Any]) -> None:

def _uninstrument(self, **kwargs: Dict[str, Any]) -> None:
unwrap(boto3, "client")
unwrap(boto3, "resource")
unwrap(boto3.Session, "client")
unwrap(boto3.Session, "resource")

for client_cls in botocore.client.BaseClient.__subclasses__():
self._un_decorate_sqs(client_cls)

0 comments on commit 6bfaf34

Please sign in to comment.