🇯🇵 Langfuse Cloud Japan is live →
← Back to changelog
May 15, 2026

Trace context on /v2/observations

Picture Niklas SemmlerNiklas Semmler

Fetch a trace's tags, release, and trace name directly on each observation row — no second request and no client-side join.

/api/public/v2/observations now supports the trace_context field group. Add it to your fields query parameter and each observation comes back with tags, release, and traceName — denormalized from the parent trace, no extra /traces/{id} calls needed.

GET /api/public/v2/observations?fields=core,basic,trace_context

Common cases this simplifies:

  • Filter observations by trace tag in a downstream pipeline without keeping a trace lookup table.
  • Group observations by release for regression analysis directly on the observations response.
  • Render trace names in an analytics view that paginates observations.

trace_context joins the existing groups (core, basic, time, io, metadata, model, usage, prompt, metrics) on the v2 endpoint. The full table is in the Observations API v2 docs.

usagePricingTierName also moved from trace_context to the usage group on the same endpoint — it's an observation-level pricing attribute, not parent-trace metadata. Update your queries if you were requesting it under the old group.


Was this page helpful?