---
title: Why does my trace have no messages?
description: Causes and fixes for an empty or incomplete Messages tab, and for trace evaluations that skip a trace because of its messages.
tags: [observability, evaluation, trace-evaluations]
---

# Why does my trace have no messages?

A trace's [messages](/docs/observability/features/messages) come from its `generation` observations. If the **Messages** tab is empty or incomplete, or trace evaluations skip the trace, check these causes:

| Cause                                            | Fix                                              |
| ------------------------------------------------ | ------------------------------------------------ |
| No `generation` observations                     | Log each LLM call as a generation                |
| Generation input and output are empty            | Set them on the generation, not on a parent span |
| More than 1,000 generation and tool observations | Split the work into smaller traces               |
| Messages total more than 1 million characters    | Split the work into smaller traces               |

## Log LLM calls as generations

Most [integrations](/integrations) log LLM calls as generations. With manual instrumentation, set the [observation type](/docs/observability/features/observation-types) to `generation` and record the model's input and output on it, in a [supported message format](/docs/observability/features/messages#supported-formats). Input and output on a parent span or an agent observation create no messages.

## Stay within the size limits [#stay-within-the-size-limits]

- If a trace has more than 1,000 generation and tool observations, the **Messages** tab shows messages from the first 1,000 only.
- You can't test or preview an evaluator on a trace with more than 1,000 generation and tool observations. Scheduled trace evaluations read all observations and are limited only by message size.
- If a trace's messages total more than 1 million characters, trace evaluations skip it.

For long-running agents, create one trace per turn or task and group the traces in a [session](/docs/observability/features/sessions).

<!-- 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-has-no-messages.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>.
