Skip to main content
Custom instrumentation is the most flexible way to send high-fidelity traces to Lemma when you are not relying on a single framework integration. Use it when you need to:
  • trace a custom agent loop end-to-end
  • control exactly how run, step, and tool-call spans are created
  • attach business metadata for filtering in the dashboard
  • combine Lemma export with other OpenTelemetry destinations

Concept Mapping

This section mirrors common observability language used across agent platforms:
ConceptIn Lemma
RunA top-level wrapAgent / wrap_agent execution (ai.agent.run)
StepAn LLM-call span inside the run (manual or OpenInference-generated)
Tool callA child span that captures tool name, args, result, and status
SessionA group of related runs linked by shared metadata (for example session_id)

Using These Docs

Start with the setup page for your runtime, then use the run, step, and tool-call pages as reference docs for the parts of the lifecycle you need to instrument.

Next Steps