tracer

Fetch time-series session metrics for the observe graph.

Supports the same metric types as the trace graph endpoint:

  • SYSTEM_METRIC: latency, tokens, cost, error_rate, session_count, avg_duration, avg_traces_per_session — all aggregated at session level
  • EVAL: eval scores averaged across sessions
  • ANNOTATION: annotation scores averaged across sessions

Response shape matches trace graph: {metric_name, data: [{timestamp, value, primary_traffic}]}

post/tracer/trace-session/get_session_graph_data/

Request

  • Base URL: http://localhost:8000
  • URL: http://localhost:8000/tracer/trace-session/get_session_graph_data/
  • Auth: one of:
    • API key in header X-Api-Key
    • API key in header X-Secret-Key

Query parameters

allow_sampledboolean

Deprecated compatibility parameter. Observe graphs always return complete exact data or a retryable error.

refreshboolean

Recompute and atomically replace the last complete exact result.

Request body

project_idstring uuid required
interval'hour' | 'day' | 'week' | 'month'
propertystring

Accepted for older clients and ignored for SYSTEM_METRIC graphs: each system metric has one statistic, named by the response's metric_statistic. Latency is always the mean (avg) span latency.

Response

OK

statusboolean

Changes

No recorded changes to this operation across all 1 revision of this API.