Langfuse launches AI Gateway Learn more
FaqWhy does my trace have no messages?

Why does my trace have no messages?

A trace's messages come from its generation observations. If the Messages tab is empty or incomplete, or trace evaluations skip the trace, check these causes:

CauseFix
No generation observationsLog each LLM call as a generation
Generation input and output are emptySet them on the generation, not on a parent span
More than 1,000 generation and tool observationsSplit the work into smaller traces
Messages total more than 1 million charactersSplit the work into smaller traces

Log LLM calls as generations

Most integrations log LLM calls as generations. With manual instrumentation, set the observation type to generation and record the model's input and output on it, in a supported message format. Input and output on a parent span or an agent observation create no messages.

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.


Was this page helpful?

Last updated on