v1
latestOpenAPI 3.1.02026-07-26231646860.9 KBtrace
Query Metrics V2
Same as /metrics/search but returns metrics with node-type counts: trace (requests_count), session_count, and span_count in aggregate_metrics and in each bucket, similar to /metrics/custom_search.
post/v2/projects/{project_id}/metrics/search/v2
Path parameters
project_idstring uuid4 required
Request body
Example request
{
"end_time": "2023-10-01T01:00:00Z",
"filters": [
{
"case_sensitive": true,
"name": "input",
"operator": "eq",
"type": "text",
"value": "example input"
}
],
"group_by": "model",
"interval": 5,
"log_stream_id": "00000000-0000-0000-0000-000000000000",
"start_time": "2023-10-01T00:00:00Z"
}Response
Successful Response