Documentation Index
Fetch the complete documentation index at: https://docs.uselemma.ai/llms.txt
Use this file to discover all available pages before exploring further.
What tracing gives you
Every agent execution becomes a trace — a complete record of what happened, how long it took, and where it went wrong. Traces contain spans organized as a tree, with provider/framework spans (for examplegen_ai.chat) and operation spans (for example tools, retrieval, and app logic).
application request
root span
trace ID · timing · metadata
gen_ai.chat
prompt · completion · tokens
tool.lookup-order
input · output
gen_ai.chat
second LLM call
gen_ai.chat spans can come from Langfuse-supported framework/provider instrumentation or any other OpenTelemetry-compatible instrumentation that follows GenAI conventions, including OpenInference, Arize, Braintrust, or provider SDK instrumentation. Tool spans and app spans come from your framework, instrumentation library, or custom OpenTelemetry spans.
Setup guides
Langfuse integration (recommended for greenfield)
Add instrumentation from scratch with Langfuse, then export spans to Lemma.
Using a supported framework
Start from your framework page, then apply the shared exporter setup.
OpenTelemetry export
Add Lemma to an existing OpenTelemetry pipeline.
Recommended architecture
For greenfield implementations:- Instrument agent execution with Langfuse or Langfuse-supported OTel integrations.
- Use
LangfuseSpanProcessoras the processing layer. - Export resulting spans to Lemma with an OpenTelemetry exporter and Lemma headers.
- Keep your current OpenTelemetry-compatible instrumentation (OpenInference, Arize, Braintrust, provider SDK instrumentation, or another OTel stack).
- Add Lemma as an OTLP trace export destination.
- Verify spans arrive in Lemma with expected trace IDs, parent/child relationships, and metadata.
Next Steps
- Start with Langfuse if you are adding tracing from scratch.
- Add OpenTelemetry export if you already have OpenTelemetry-compatible spans.
- Troubleshoot traces if spans are missing, delayed, or nested incorrectly.

