An endpoint has a single latency budget that is meant to cover all of its downstream operations, which run_with_budget runs one after another. In production traces the endpoint can take up to three times its configured timeout: when an early dependency is slow, the later ones still start and are allowed to run for a long time.
A trace from one request with a 10-second budget:
budget=10.0s
op=fetch_user started=0.0s took=7.0s
op=fetch_orders started=7.0s took=9.5s
op=fetch_prices started=16.5s took=8.0s
response sent at 24.5s
The whole request must respect the configured budget.