Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion docs/platforms/python/integrations/django/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ By adding `DjangoIntegration` explicitly to your `sentry_sdk.init()` call you ca
<SignInNote />

```python
import django.db.models.signals

import sentry_sdk
from sentry_sdk.integrations.django import DjangoIntegration

Expand All @@ -95,7 +97,11 @@ sentry_sdk.init(
DjangoIntegration(
transaction_style='url',
middleware_spans=True,
signals_spans=False,
signals_spans=True,
signals_denylist=[
django.db.models.signals.pre_init,
django.db.models.signals.post_init,
],
cache_spans=False,
),
],
Expand Down Expand Up @@ -125,6 +131,12 @@ You can pass the following keyword arguments to `DjangoIntegration()`:

The default is `True`.

- `signals_denylist`:

A list of signals to exclude from performance tracking. No spans will be created for these.

The default is `[]`.

- `cache_spans`:

Create spans and track performance of all read operations to configured caches. The spans also include information if the cache access was a hit or a miss. Set to `True` to enable.
Expand Down