POST /v1/metering/operations/{operation_id}/spans:report
MeteringService_ReportSpan
The server validates credentials, tenant, environment and permissions. This page does not send requests. Replace example values; deployed server validation remains authoritative.
Parameters
operation_idpath · string · required
Request body
attributes_jsonstringcontent_capturestringended_atstringentry_pointstringerror_codestringerror_messagestringerror_typestringinput_digeststringinput_previewstringkindstringlinksarrayExpand fields
attributes_jsonstringrelationstringspan_idstringtrace_idstring
namestringoperation_idstringoutput_digeststringoutput_previewstringparent_span_idstringsequence_nostringspan_idstringspan_keystringstarted_atstringstatusstringtrace_idstring
cURL
curl --request POST 'https://nexus-api.rainlib.com/v1/metering/operations/{operation_id}/spans:report' \
--header 'Authorization: Bearer <NEXUS_ACCESS_TOKEN>' \
--header 'Content-Type: application/json' \
--data '{
"attributes_json": "<value>",
"content_capture": "<value>",
"ended_at": "<value>",
"entry_point": "<value>",
"error_code": "<value>",
"error_message": "<value>",
"error_type": "<value>",
"input_digest": "<value>",
"input_preview": "<value>",
"kind": "<value>",
"links": [
{
"attributes_json": "<value>",
"relation": "<value>",
"span_id": "<value>",
"trace_id": "<value>"
}
],
"name": "<value>",
"output_digest": "<value>",
"output_preview": "<value>",
"parent_span_id": "<value>",
"sequence_no": "<value>",
"span_id": "<value>",
"span_key": "<value>",
"started_at": "<value>",
"status": "<value>",
"trace_id": "<value>"
}'Response contract
200 · OK
attributes_jsonstringcontent_availablebooleancontent_capturestringcreated_atstringended_atstringentry_pointstringerror_codestringerror_messagestringerror_typestringexecution_delegation_idstringfirst_reporter_api_key_idstringfirst_reporter_service_account_idstringfirst_reporter_tenant_idstringidstringkindstringlast_reporter_api_key_idstringlast_reporter_service_account_idstringlast_reporter_tenant_idstringlinksarrayExpand fields
attributes_jsonstringrelationstringspan_idstringtrace_idstring
namestringoperation_idstringparent_span_idstringsequence_nostringspan_idstringspan_keystringstarted_atstringstatusstringtrace_idstringupdated_atstringversionstring
Generated responses do not enumerate every runtime error. See the integration guide for authentication, conflicts and retries.