Documentation Index
Fetch the complete documentation index at: https://docs.latitude.so/llms.txt
Use this file to discover all available pages before exploring further.
Group traces by project
Latitude runs issue detection across all traces inside a project. That is the right default when one project represents one agent, application, or product surface. If the same workspace receives traces from multiple unrelated agents, their failure modes can mix together. For example, a customer-support agent and a code-review agent should usually not share issue discovery, because frustration, tool failures, refusals, or hallucinations mean different things in each context. The best way to keep issue discovery clean is to create one Latitude project per agent or product surface and route each trace to the right project.When to split traces into different projects
Use separate projects when agents have different:- prompts, tools, retrieval systems, or model configurations
- users, workflows, or product surfaces
- quality standards or failure definitions
- owners or triage workflows
- issue detection and evaluation needs
How Latitude resolves the project
Each ingested span resolves to a Latitude project from the first available source:- Span attribute:
latitude.project - OTEL resource attribute:
latitude.project - Export header:
X-Latitude-Project
SDK examples
TypeScript: one project per process
If the service only runs one agent, set the project when initializing Latitude.TypeScript: multiple agents in one process
If one process runs multiple agents, setproject on capture() so each trace is routed by agent.
Python: one project per process
Python: multiple agents in one process
OpenTelemetry examples
One project per exporter with X-Latitude-Project
Use the export header when every span exported by the process belongs to the same Latitude project.
One project per process with a resource attribute
Use the resource attribute when your OpenTelemetry setup prefers routing metadata on the resource instead of headers.Multiple agents in one process with a span attribute
Use the span attribute when a single process emits traces for multiple agents. The span-level value wins over the resource attribute and export header.Recommended pattern
Start with one Latitude project per production agent. If one runtime hosts several agents, keep one exporter but setlatitude.project per agent run through the SDK capture() option or an OTEL span attribute.
That keeps search, scores, evaluations, and issue discovery focused on the traces that belong together.