---
title: Why is my trace evaluator not running?
description: If an evaluator attached to a trace rule produces no scores, check the idle time, the rule filters and sampling, the ingestion path, and the trace's messages.
tags: [evaluation, trace-evaluations]
---

# 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:

1. [Is the trace still receiving observations?](#idle-time)
2. [Does the rule match the trace?](#rule-filters-and-sampling)
3. [Are you on a compatible SDK version or ingestion method?](#ingestion)
4. [Does the trace have messages?](#no-messages)
5. [Does the evaluator read trace data?](#scope-mismatch)

## The trace is still receiving observations [#idle-time]

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 [#rule-filters-and-sampling]

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](/faq/all/observation-eval-not-executing#trace-level-attributes-not-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 [#ingestion]

Trace evaluators only run on traces that Langfuse writes directly to the v4 data model through the [OTEL endpoint](/integrations/native/opentelemetry) (`/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/otel` with the `x-langfuse-ingestion-version: 4` header. 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:**

**Python**

```bash
pip show langfuse
```

You need version `4.0.0` or higher. If you're on v3, follow the [Python v3 to v4 upgrade guide](/docs/observability/sdk/upgrade-path/python-v3-to-v4).

**JS/TS**

```bash
npm list @langfuse/otel
```

You need version `5.0.0` or higher. If you're on v4, follow the [JS/TS v4 to v5 upgrade guide](/docs/observability/sdk/upgrade-path/js-v4-to-v5).

**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](/integrations/native/opentelemetry/migration-to-v4) to convert legacy events.

## The trace has no messages [#no-messages]

Trace evaluators read the trace's [messages](/docs/observability/features/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?](/faq/all/trace-has-no-messages) for causes and fixes.

## The evaluator reads observation data [#scope-mismatch]

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](/docs/evaluation/evaluation-methods/code-evaluators#observations-and-traces).

Still stuck? Reach out to [support](/support).

<!-- agent-instructions -->

---

## Agent Instructions

This page is part of the [Langfuse](https://langfuse.com) documentation, published as plain Markdown for AI agents. Every page is available as Markdown by appending `.md` to its URL, or by sending an `Accept: text/markdown` header. This page: `https://langfuse.com/faq/all/trace-evaluation-not-running.md`.

### Querying these docs

If the answer is not on this page, query the documentation instead of guessing:

- **Semantic search** across all Langfuse docs, returning an answer with the relevant pages and excerpts. Ask a specific, self-contained question:

  ```bash
  curl -sG "https://langfuse.com/api/search-docs" --data-urlencode "query=How do I trace a LangGraph agent?"
  ```

- **Index of every page**: <https://langfuse.com/llms.txt>, with per-section indexes [llms-docs.txt](https://langfuse.com/llms-docs.txt), [llms-integrations.txt](https://langfuse.com/llms-integrations.txt), and [llms-self-hosting.txt](https://langfuse.com/llms-self-hosting.txt).

### Before writing Langfuse code

- **Install the [Langfuse Agent Skill](https://langfuse.com/docs/api-and-data-platform/features/agent-skill).** It encodes Langfuse's own best practices for instrumentation, prompt management, and evaluation, and materially improves results.
- **Read [What does a good trace look like?](https://langfuse.com/docs/observability/best-practices.md)** before instrumenting an application.
- **Verify endpoints, parameters, and response fields** against the [OpenAPI spec](https://cloud.langfuse.com/generated/api/openapi.yml), or read the [API reference as Markdown](https://api.reference.langfuse.com/index.md), instead of inferring them from code examples.
- **Use the [Langfuse CLI](https://langfuse.com/docs/api-and-data-platform/features/cli)** (`npx @langfuse/cli api <resource> <action>`) to read or write traces, prompts, datasets, and scores from the terminal.

Found an error in these docs? Please open an issue at <https://github.com/langfuse/langfuse-docs/issues>.
