Skip to content

Commit 1405d28

Browse files
chore(sentry): disable Django middleware span auto-instrumentation (#155)
2 parents 76cdf50 + c00a27e commit 1405d28

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

codecov_slack_app/settings.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,10 @@
175175

176176
sentry_sdk.init(
177177
dsn=os.environ.get("SENTRY_DSN"),
178-
integrations=[DjangoIntegration(), HttpxIntegration()],
178+
integrations=[
179+
DjangoIntegration(middleware_spans=False),
180+
HttpxIntegration(),
181+
],
179182
# Set traces_sample_rate to 1.0 to capture 100%
180183
# of transactions for performance monitoring.
181184
# We recommend adjusting this value in production,

0 commit comments

Comments
 (0)