POST
/v1/private/workspaces/metrics/spansGet workspace span metricGets a span metric time series aggregated across the workspace. When project_ids is empty, all projects in the workspace are included; otherwise only the given projects.
Request body
application/json
objectWorkspaceSpanMetricRequest
breakdownobjectShow child attributes
fieldstringmetadata_keystringsub_metricstringfiltersarray of objectShow child attributes
Show array items
fieldstringkeystringoperatorstringvaluestringintervalstringinterval_endstring · date-timeinterval_startstring · date-timerequiredmetric_typestringproject_idsarray of string · uuidShow child attributes
start_before_endboolean{
"breakdown": {
"field": "error_info",
"metadata_key": "string",
"sub_metric": "string"
},
"filters": [
{
"field": "string",
"key": "string",
"operator": "!=",
"value": "string"
}
],
"interval": "DAILY",
"interval_end": "2026-06-09T00:00:00Z",
"interval_start": "2026-06-09T00:00:00Z",
"metric_type": "COST",
"project_ids": [
"00000000-0000-0000-0000-000000000000"
],
"start_before_end": true
}Responses
objectWorkspaceMetricResponse
resultsarray of objectShow child attributes
Show array items
currentnumber · doublenamestringpreviousnumber · double{
"results": [
{
"current": 0,
"name": "string",
"previous": 0
}
]
}objectErrorMessage
codeinteger · int32detailsstringmessagestring{
"code": 0,
"details": "string",
"message": "string"
}