Acceldata
AIO

Last updated: Oct 06, 2026 15:11 UTC

Trace slower than budget

Find out what the Trace slower than budget rule checks, what it needs, and how to set its latency budget.

Definition

Trace slower than budget (trace_duration_bound) flags a request when its end-to-end duration exceeds a budget you set. It checks each trace, which is one request, as a whole.

Property

Value

Unit

trace

Check kind

deterministic

Category

Operational thresholds

Score type

Pass or fail

Default severity

LOW

The rule applies to every trace that has at least one span. A trace fails when its duration in milliseconds is greater than Latency budget (ms). A trace that takes exactly the budget passes.

When a trace fails, the result records the trace's duration as the observed value and adds a short summary, for example: trace took 42150ms, budget 30000ms. You see this summary in the Checks panel for the trace and in the Check results popover from the Rules column on the trace list. For more about reading results, go to Explore traces.

Why it matters

The rule measures the whole trace, so it catches slowness that no single span causes on its own. For example, a request can be slow even when each model call and tool call is fast.

This rule checks every trace against a fixed limit. To catch latency that rises over time compared to its own history, use Latency regression instead.

What it requires

This is a deterministic check, so it makes no model calls and doesn't need a judge model.

Results for a trace can be updated as more of the trace arrives. When the rule reads the same trace again, the new result replaces the earlier one.

Parameters

Parameter

Required

Default

Allowed values

Latency budget (ms)

Yes

30000

A whole number, 1 or more

Latency budget (ms) is the end-to-end duration, in milliseconds, above which a trace fails.

Configuration examples

The following table shows example budgets.

Latency budget (ms)

Effect

5000

Fails any request that takes longer than 5 seconds.

30000

The default. Fails any request that takes longer than 30 seconds.

120000

Fails only requests that take longer than 2 minutes.

To set up this rule:

  1. On the Rules page of your project, select + New rule.
  2. On the New rule page, in Search templates, enter trace_duration_bound, and then select Configure › on the Trace slower than budget card.

The New rule page showing the template catalog with search, kind filters, and category list

  1. On the Configure rule page, check Name, which defaults to the template name and your project, for example Trace slower than budget — checkout-api.
  2. For Latency budget (ms), enter your budget, for example 5000.
  3. For Severity, select a level if you don't want the default of LOW.
  4. Select Save & enable.

The Configure rule page for Trace slower than budget with the Latency budget (ms) field

For every field on the form, go to Create a rule.

If the budget isn't valid, the form shows one of these messages after you select Save & enable:

  • "Latency budget (ms) is required."
  • "Latency budget (ms) must be a whole number."
  • "Latency budget (ms) must be at least 1."

Related

Next steps