Skip to content

Commit 3574cae

Browse files
authored
ref(tracing): Disable Django middleware span auto-instrumentation (#102290)
It has been very rare that we've needed to debug the performance of our middleware spans, and these are a significant volume of our span telemetry we send. Let's disable them and re-add telemetry in specific places if required. We'll also still have profiles which can be used to debug these middlewares with full detail if needed.
1 parent ae377f7 commit 3574cae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sentry/utils/sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ def flush(
482482
transport=MultiplexingTransport(),
483483
integrations=[
484484
DjangoAtomicIntegration(),
485-
DjangoIntegration(signals_spans=False, cache_spans=True),
485+
DjangoIntegration(signals_spans=False, cache_spans=True, middleware_spans=False),
486486
# This makes it so all levels of logging are recorded as breadcrumbs,
487487
# but none are captured as events (that's handled by the `internal`
488488
# logger defined in `server.py`, which ignores the levels set

0 commit comments

Comments
 (0)