sentry-python
sentry-python copied to clipboard
[Django] add command integration for profiling
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".