From f8711eb926f3c6850f195d8113c468e281141473 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Wed, 7 Jan 2026 09:23:49 +0100 Subject: [PATCH] docs: Fix middleware_spans docstring We updated the option default, but forgot to update the docstring. --- sentry_sdk/integrations/django/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentry_sdk/integrations/django/__init__.py b/sentry_sdk/integrations/django/__init__.py index 0cc4bc4d16..2595c33ea8 100644 --- a/sentry_sdk/integrations/django/__init__.py +++ b/sentry_sdk/integrations/django/__init__.py @@ -109,7 +109,7 @@ class DjangoIntegration(Integration): Auto instrument a Django application. :param transaction_style: How to derive transaction names. Either `"function_name"` or `"url"`. Defaults to `"url"`. - :param middleware_spans: Whether to create spans for middleware. Defaults to `True`. + :param middleware_spans: Whether to create spans for middleware. Defaults to `False`. :param signals_spans: Whether to create spans for signals. Defaults to `True`. :param signals_denylist: A list of signals to ignore when creating spans. :param cache_spans: Whether to create spans for cache operations. Defaults to `False`.