News for hackers. Stuff that matters.
Re:Django 5.0 Is Released by fbdab103 on Monday December 04, 2023 @02:52PM (#38522239)
Monitoring production is the piece I was missing. Was thinking of it as strictly for development.

Unless it adds a bunch of overhead, seems like a no-brainer to enable.

Re:Django 5.0 Is Released by har777 on Monday December 04, 2023 @03:29PM (#38522600)
It only adds like ~5ms. Unless you have `query_level_metrics_enabled` as True which takes more time. I didn't find that particularly useful on prod and instead just used it locally when fixing stuff. Depends on what data you need populated in your callback function on prod.

The header feature can also be useful. If you have a client on-call who's complaining about super slow page loads. Just check their network tab and see which response has a query count/time header which seems unnatural.