sentry-python icon indicating copy to clipboard operation
sentry-python copied to clipboard

[Django] add command integration for profiling

Open Christophe31 opened this issue 1 year ago • 0 comments

Problem Statement

We may want to look at migration or tests performances, like requests, manages commands may be profiled and error tracked

Solution Brainstorm

Allow to Override relevant django management commands to enable tracking with commands args context to allow performance investigation either on migrations or data injections or anything we think may need performance or stability polish (or in dev branches for debug purposes).

Ideally, django migrate would make a profiling session per migration with a request name like "app.migrations.0003_migration_name".

Christophe31 avatar Jan 26 '24 10:01 Christophe31