# Django Error Monitoring & Performance Monitoring

> Trace slow middleware, signals, and database queries, then resolve exceptions with local variables still in the stack. Supports Django 1.8 and above.

**URL:** https://sentry.io/for/django/

---

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.

**Documentation:** [https://docs.sentry.io/platforms/python/integrations/django/](https://docs.sentry.io/platforms/python/integrations/django/)

## Features

### Django Performance Monitoring

Within minutes after installing Sentry, software teams are able to trace Django [performance](/product/tracing/) issues back to a poor performing API call as well as surface all related code errors. Engineering Managers and Developers now have a single tool to optimize performance of their code and deliver fast customer experiences with Performance Monitoring.

### Complete Stack Traces, With Local Variables

See local variables in the stack for prod errors, just like in your dev environment. Introspect more deeply into the runtime and jump into the frame to get additional data for any local variable. Filter and group Django exceptions intuitively to eliminate noise.

### Fill In the Blanks

Expose the important events that led to each Django exception: SQL queries, debug logs, network requests, past errors. Learn in which version a bug first appeared, merge duplicates, and know if things regress in a future release.

### Your Logs, Next to the Request

Send your Django logging output to Sentry and query it alongside the request [trace](/product/tracing/) 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](/product/logs/).

## FAQ

**How do I monitor Django performance?**

Install the [Sentry Python SDK](/for/python/) 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](/product/profiling/) to get function-level detail on the slowest requests, and [Logs](/product/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](/product/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](/product/logs/).

**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, hand the work to an external coding agent, or review your PRs before they ship.

Learn more about [Seer](/product/seer/) and [Autofix](/product/seer/autofix/).

**How much does Sentry cost?**

You can get started for free. Pricing depends on the number of monthly events, transactions, and attachments that you send Sentry. For more details, visit our [pricing page](/pricing/).

**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.

---

*Source: [sentry.io/for/django/](https://sentry.io/for/django/)*
