From 7e7e5ad1cf0c061a30efdd1e89a3d0f25089223c Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Mon, 7 Sep 2026 11:11:31 +0200 Subject: [PATCH] fix(pymongo): Pop lsid from command --- sentry_sdk/integrations/pymongo.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sentry_sdk/integrations/pymongo.py b/sentry_sdk/integrations/pymongo.py index 6cd74b54c0..ac66d4b12c 100644 --- a/sentry_sdk/integrations/pymongo.py +++ b/sentry_sdk/integrations/pymongo.py @@ -140,6 +140,7 @@ def started(self, event: "CommandStartedEvent") -> None: collection_name = command.get(event.command_name) operation_name = event.command_name + command.pop("lsid", None) if has_data_collection_enabled(client.options): if not client.options["data_collection"]["database_query_data"]: command = _strip_pii(command)