Retrieve the full, granular details of a specific Langfuse trace, including all its underlying observations.
x-api-key header to authenticate this request.sessionId (Path): The UUID of the LiveKit session where the action occurred.traceId (Path): The ID of the specific trace you want to inspect.observations Arrayobservations array. An observation represents a single unit of work (like an LLM generation, a tool call, or a database retrieval).
When debugging agent behavior, look closely at these fields within each observation:
input & output: The exact string or JSON payload sent to the model, and the exact string returned. This is critical for debugging why an agent said something unexpected.model & modelParameters: Confirms which model (e.g., gpt-4o) handled the request and the temperature/top_p settings applied at that exact moment.usageDetails & costDetails: A granular breakdown of prompt tokens vs. completion tokens, and the exact fractional USD cost associated with this single step.latency & Timing: Compare startTime, completionStartTime (time to first token), and endTime to pinpoint exactly where delays are happening in your pipeline.The unique UUID of the LiveKit session.
"3fa85f64-5717-4562-b3fc-2c963f66afa6"
The specific identifier of the trace to retrieve.
"trace-abc-123"
Trace details retrieved successfully.