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.
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.