{"slug":"api-zfinia-com-x402-v1-trace-integrity-audit-bd3dc2","title":"Check whether a set of spans forms coherent traces","host":"api.zfinia.com","method":"POST","resource":"https://api.zfinia.com/x402/v1/trace-integrity-audit","category":"code","description":"Check whether a set of spans forms coherent traces. Reports a parent that is not in the data, so the trace renders as fragments rather than one tree; a trace with no root or several; a cyclic parent chain, which makes any walk loop; a span that ends before it starts; and a child whose times fall out","price_listed":0.22,"price_asked":0.22,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":4286,"reported_calls_30d":1,"reported_payers_30d":1,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"spans":"[\n {\n  \"trace_id\": \"t1\",\n  \"span_id\": \"a\",\n  \"name\": \"GET /orders\",\n  \"kind\": \"SPAN_KIND_SERVER\",\n  \"start_time\": \"2026-10-02T12:00:00.000Z\",\n  \"end_time\": \"2026-10-02T12:00:00.500Z\",\n  \"attributes\": {\n   \"http.request.method\": \"GET\",\n   \"http.route\": \"/orders\"\n  }\n },\n {\n  \"trace_id\": \"t1\",\n  \"span_id\": \"b\",\n  \"parent_span_id\": \"a\",\n  \"name\": \"SELECT orders\",\n  \"kind\": \"SPAN_KIND_CLIENT\",\n  \"start_time\": \"2026-10-02T11:59:59.960Z\",\n  \"end_time\": \"2026-10-02T12:00:00.200Z\",\n  \"attributes\": {}\n },\n {\n  \"trace_id\": \"t1\",\n  \"span_id\": \"c\",\n  \"parent_span_id\": \"zz\",\n  \"name\": \"cache.get\",\n  \"start_time\": \"2026-10-02T12:00:00.100Z\",\n  \"end_time\": \"2026-10-02T12:00:00.110Z\",\n  \"attributes\": {}\n },\n {\n  \"trace_id\": \"t2\",\n  \"span_id\": \"d\",\n  \"name\": \"GET /orders/8827341/items\",\n  \"kind\": \"HTTP_SERVER\",\n  \"start_time\": \"2026-10-02T12:00:01.000\",\n  \"end_time\": \"2026-10-02T12:00:01.300Z\",\n  \"attributes\": {\n   \"http.request.method\": \"GET\"\n  }\n }\n]"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"clock_skew_tolerance_ms":{"maximum":600000,"minimum":0,"type":"integer"},"spans":{"maxLength":2097152,"type":"string"}},"required":["spans"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-04","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.22,"price_match":true,"latency_ms":4286,"error":null}],"description_full":"Check whether a set of spans forms coherent traces. Reports a parent that is not in the data, so the trace renders as fragments rather than one tree; a trace with no root or several; a cyclic parent chain, which makes any walk loop; a span that ends before it starts; and a child whose times fall outside its parent, which is clock skew between hosts rather than a code defect and which every latency figure derived from the trace inherits.","last_updated":"2026-10-04T08:32:33.11Z","schemes":["exact"]}