Why is my trace evaluator not running?
You've attached an evaluator to a trace rule, but no scores appear on your traces. Check these causes:
- Is the trace still receiving observations?
- Does the rule match the trace?
- Are you on a compatible SDK version or ingestion method?
- Does the trace have messages?
- Does the evaluator read trace data?
The trace is still receiving observations
A trace rule scores a trace once it stops receiving observations. By default, Langfuse waits 10 minutes after the last observation arrives. To change the wait, edit Idle time in the rule's filter step, from 60 to 3,600 seconds. The setting applies to all trace rules in the project.
The rule does not match the trace
A trace matches a rule if at least one of its observations matches all of the rule's filters. All filters must match the same observation, so trace-level attributes such as tags or user IDs need to be propagated to observations.
The sampling rate is the percentage of matching traces that are evaluated. At a low rate, most matching traces receive no score.
Langfuse never evaluates traces created by its own evaluators.
Incompatible SDK version or ingestion method
Trace evaluators only run on traces that Langfuse writes directly to the v4 data model through the OTEL endpoint (/api/public/otel). This means you need either:
- A Langfuse SDK: Python v4+ or JS/TS v5+ (these opt in to direct writes automatically)
- Direct OTEL ingestion: Sending OpenTelemetry spans to
/api/public/otelwith thex-langfuse-ingestion-version: 4header. On Langfuse Cloud, organizations created on or after August 11, 2026 don't need the header.
Traces sent via Python SDK v3, JS/TS SDK v4, or the legacy REST ingestion API (/api/public/ingestion) don't trigger trace evaluations. Observation-level evaluators still run on Python v3 and JS/TS v4 data, and the evaluator test panel still shows these traces as samples.
How to check your SDK version:
pip show langfuseYou need version 4.0.0 or higher. If you're on v3, follow the Python v3 to v4 upgrade guide.
npm list @langfuse/otelYou need version 5.0.0 or higher. If you're on v4, follow the JS/TS v4 to v5 upgrade guide.
If you're using a custom ingestion pipeline (not an SDK), send spans to the OTEL endpoint with the x-langfuse-ingestion-version: 4 header. Follow the custom ingestion migration guide to convert legacy events.
The trace has no messages
Trace evaluators read the trace's messages. Langfuse skips a trace without messages, or one whose messages total more than 1 million characters. When you test the evaluator, the sample shows This trace cannot be evaluated for a trace without messages and This trace is too large to evaluate for one over the limit. See Why does my trace have no messages? for causes and fixes.
The evaluator reads observation data
An evaluator tested on observations reads observation fields, which traces don't provide.
- LLM-as-a-Judge and decision models: if you attach the evaluator to a trace rule, the rule dialog shows a warning on it. Remap each listed variable to the trace's messages before you save the rule.
- Code evaluators: the rule dialog shows no warning, because code evaluators have no variable mapping. The evaluator fails on every trace unless the function reads
ctx.trace. To use one evaluator for both, branch on the target type.
Still stuck? Reach out to support.
Last updated on