kolofordjango / kolo

See everything happening in your running Django app. All without leaving VSCode
https://kolo.app
512 stars 14 forks source link

feat: Limit stack level for traces #87

Open fsbraun opened 4 months ago

fsbraun commented 4 months ago

Feature

Add a setting to limit the maximum stack level for traces.

Rationale

When testing how requests scale, say with a number of model objects, traces can quickly become huge in size and potentially difficult to view or analyze.

Limiting the maximum stack level would reduce the size of the traces, but still allow identifying which functions or methods do not scale well.

In a second step, a trace with a smaller number of model objects and full stack depths can reveal optimization potential.