BlogDjango error monitoring
Actionable insights to resolve Django performance bottlenecks and errors. Improve your monitoring workflow with a full view of releases so you can mark Django errors as resolved and prioritize live issues.
200k+ organizations trust us to monitor their apps
- GitHub
- Atlassian
- Disney
- Cloudflare
- Microsoft
- Cursor
Django Performance Monitoring

Complete Stack Traces, With Local Variables

Fill In the Blanks

Your Logs, Next to the Request
Send your Django logging output to Sentry and query it alongside the request trace and the exception. The log lines that surrounded a failed view are attached to it, so you can see the retry, the failed upstream call, or the unexpected state that caused it.
Learn more about Logs in Sentry.

Customer story
Sentry helps our team fix the most important issues in each release.
Getting Started is Simple
Install our Python SDK using pip:
pip install --upgrade sentry-sdkInitialize the SDK in your settings.py file. The Django integration is enabled automatically.
import sentry_sdk
sentry_sdk.init(
dsn="https://<key>@sentry.io/<project>",
# Check https://docs.sentry.io/platforms/python/data-management/data-collected/ to configure what data is collected
data_collection={
"user_info": True,
},
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for tracing.
# We recommend adjusting this value in production.
traces_sample_rate=1.0,
)FAQs
How do I monitor Django performance?
Install the Sentry Python SDK and enable tracing. Sentry then instruments your Django app automatically: the middleware stack, synchronous signal receivers, database queries, cache read operations, and Redis commands all become spans on a distributed trace, so you can see which layer made a request slow.
Add Profiling to get function-level detail on the slowest requests, and Logs to keep your Django logs beside the trace that produced them. Sentry supports Django 1.8 and above.
Does Sentry track Django database queries?
Yes. The Django integration instruments your database queries automatically and records each one as a span, so slow and repeated queries show up directly on the trace for a request. Cache reads and Redis commands are instrumented the same way.
Because queries are attached to the trace rather than sitting in a separate tool, you can see the request, the query that slowed it down, and any related error together. Learn more about Tracing.
Can I send logs to Sentry?
Yes. Sentry Logs lets you send, view, and query structured logs from your application alongside your errors and traces. Because logs sit next to the error and the trace that produced them, you get the granular context — retries, API failures, internal state — that spans and stack traces alone can miss, without switching tools.
Learn more about Logs in Sentry.
What is Seer, Sentry's AI debugging agent?
Seer is Sentry's AI debugging agent. It reads the full context Sentry already has — the error, its stack trace, the surrounding trace, logs, and profiles — to find the root cause of an issue and propose a fix. Seer can open a pull request with that fix or hand the work to an external coding agent.
How much does Sentry cost?
You can get started for free. Pricing is based on the errors, spans, logs, replays and other data you send. For more details, visit our pricing page.
How does Sentry impact the performance of my app?
Sentry doesn't impact a web site's performance.
If you look at the configuration options for when you initialize Sentry in your code, you'll see there's nothing regarding minimizing its impact on your app's performance. This is because our team of SDK engineers already developed Sentry with this in mind.
Sentry is a listener/handler for errors that asynchronously sends out the error/event to Sentry.io. This is non-blocking. The error/event only goes out if this is an error.
Global handlers have almost no impact as well, as they are native APIs provided by the browsers.






