Skip to content

Document panel instrumentation behavior for production deployments - #2405

Open
onxxdatas wants to merge 4 commits into
django-commons:mainfrom
onxxdatas:docs/production-panel-audit
Open

Document panel instrumentation behavior for production deployments#2405
onxxdatas wants to merge 4 commits into
django-commons:mainfrom
onxxdatas:docs/production-panel-audit

Conversation

@onxxdatas

Copy link
Copy Markdown
Contributor

Description

This PR adds a new Production documentation page that audits the behavior of each built-in Django Debug Toolbar panel when the toolbar is installed but not displayed via SHOW_TOOLBAR_CALLBACK.

The documentation includes:

An overview of when instrumentation is installed (ready(), module import, or enable_instrumentation()).
Whether each panel's instrumentation can be fully avoided without removing it from DEBUG_TOOLBAR_PANELS.
Whether each panel monkey-patches Django or other components.
Recommendations for using Django Debug Toolbar in production-like environments.
An example configuration for excluding panels that install permanent instrumentation.

This also adds the new documentation page to the documentation index.

Closes #2203.

@github-actions

github-actions Bot commented Jul 21, 2026

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@onxxdatas

Copy link
Copy Markdown
Contributor Author

@tim-schilling Hey how are you, Can you review this PR, I think this is ready-to-merge already

@tim-schilling

Copy link
Copy Markdown
Member

@onxxdatas this is going to be a bit before I get to it. You're jumping ahead a bit here by starting with the PR. We should review that audit summary and discuss it first.

@onxxdatas onxxdatas closed this Jul 31, 2026
@onxxdatas

Copy link
Copy Markdown
Contributor Author

You're jumping ahead a bit here

yeah that makes sense, i'll pull my findings out and post the audit summary as a comment on the issue so it's easier to discuss

@onxxdatas onxxdatas reopened this Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit panels instrumentation for production usage

2 participants