__init__.py |
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 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`.
|
24966 |
asgi.py |
Instrumentation for Django 3.0
Since this file contains `async def` it is conditionally imported in
`sentry_sdk.integrations.django` (depending on the existence of
`django.core.handlers.asgi`.
|
8333 |
caching.py |
|
6427 |
middleware.py |
Create spans from Django middleware invocations
|
6009 |
signals_handlers.py |
Patch django signal receivers to create a span.
This only wraps sync receivers. Django>=5.0 introduced async receivers, but
since we don't create transactions for ASGI Django, we don't wrap them.
|
3098 |
templates.py |
|
5725 |
transactions.py |
Copied from raven-python.
Despite being called "legacy" in some places this resolver is very much still
in use.
|
4951 |
views.py |
|
3137 |