TE
Monitoring · x402 · early usage

Audit telemetry attributes against a contract, and against the thing a schema cannot se…

Audit telemetry attributes against a contract, and against the thing a schema cannot see: cardinality. Reports missing required attributes, undeclared attributes, an attribute appearing as two types across the batch, and an attribute whose distinct values exc…

by api.zfinia.com · discovered, not yet claimed by its owner · updated 2026-10-04

30d calls1
30d payers1
MethodPOST
Outputjson

Mirrored from Coinbase's public x402 Bazaar. The description is the provider's own text and has not been reviewed here; the payment requirements are copied as published.

What it does

Audit telemetry attributes against a contract, and against the thing a schema cannot see: cardinality. Reports missing required attributes, undeclared attributes, an attribute appearing as two types across the batch, and an attribute whose distinct values exceed your limit - because in a metrics backend each distinct value is a separate series, and that is how an index or a bill explodes.

Tags: telemetry · observability · cardinality · data contract · cost control · bazaar

Call contract

Method
POST
Input
json
Output
json
Last paid call
2026-10-04
Input example from Bazaar metadata
{
  "attribute_pointer": "/attributes",
  "cardinality_limit": 3,
  "contract": {
    "optional": [
      "region"
    ],
    "required": [
      "service",
      "environment"
    ],
    "types": {
      "environment": "string",
      "latency_ms": "number",
      "service": "string"
    }
  },
  "records": [
    {
      "attributes": {
        "environment": "prod",
        "latency_ms": 31.2,
        "region": "ap-southeast-2",
        "request_id": "r-1",
        "service": "checkout"
      },
      "name": "http.request"
    },
    {
      "attributes": {
        "environment": "prod",
        "latency_ms": 44,
        "region": "ap-southeast-2",
        "request_id": "r-2",
        "service": "checkout"
      },
      "name": "http.request"
    },
    {
      "attributes": {
        "environment": "prod",
        "latency_ms": "51",
        "request_id": "r-3",
        "service": "checkout"
      },
      "name": "http.request"
    },
    {
      "attributes": {
        "environment": "prod",
        "latency_ms": 28,
        "request_id": "r-4",
        "service": "checkout"
      },
      "name": "http.request"
    },
    {
      "name": "http.request"
    }
  ]
}
Output example
{
  "assumptions": [
    "Cardinality is counted within the batch supplied, and each distinct value of an attribute is one series in a metrics backend, which is why it is reported as a risk.",
    "An attribute that appears as two types across a batch cannot be indexed by a typed backend, whatever any single record looks like."
  ],
  "attributes": [
    {
      "attribute": "environment",
      "declared": true,
      "distinct_count": 1,
      "presence_rate": 0.8,
      "records": 4,
      "types": {
        "string": 4
      }
    },
    {
      "attribute": "latency_ms",
      "declared": true,
      "distinct_count": 4,
      "presence_rate": 0.8,
      "records": 4,
      "types": {
        "integer": 2,
        "number": 1,
        "string": 1
      }
    },
    {
      "attribute": "request_id",
      "declared": false,
      "distinct_count": 4,
      "presence_rate": 0.8,
      "records": 4,
      "types": {
        "string": 4
      }
    }
  ],
  "cardinality_limit": 3,
  "complete": true,
  "conformant": false,
  "distinct_attribute_count": 5,
  "examined_record_count": 5,
  "finding_count": 9,
  "findings": [
    {
      "attribute": "request_id",
      "code": "UNDECLARED_ATTRIBUTE",
      "detail": "Record 0 carries request_id, which the contract does not declare.",
      "record": 0
    },
    {
      "attribute": "request_id",
      "code": "UNDECLARED_ATTRIBUTE",
      "detail": "Record 1 carries request_id, which the contract does not declare.",
      "record": 1
    },
    {
      "attribute": "request_id",
      "code": "UNDECLARED_ATTRIBUTE",
      "detail": "Record 2 carries request_id, which the contract does not declare.",
      "record": 2
    }
  ],
  "findings_by_code": {
    "ATTRIBUTES_MISSING": 1,
    "ATTRIBUTE_CARDINALITY_RISK": 2,
    "ATTRIBUTE_TYPE_INCONSISTENT": 1,
    "ATTRIBUTE_TYPE_MISMATCH": 1,
    "UNDECLARED_ATTRIBUTE": 4
  },
  "limitations": [
    "Attribute shape and cardinality over the batch supplied. Whether the batch represents real traffic is not knowable here, so a cardinality figure is a lower bound.",
    "conformant is true only when every record was examined, every required attribute was present, and no type or cardinality problem was found."
  ],
  "limits": {
    "cardinalityWarning": 100,
    "maxAttributes": 500,
    "maxEvents": 2000,
    "maxFindings": 500,
    "maxPartitions": 500,
    "maxSchemas": 100
  },
  "not_examined": [],
  "observed_at": "2026-10-02T00:00:00.000Z",
  "passed": false,
  "records_without_attributes": 1,
  "request_id": "example-request",
  "service_id": "telemetry_attribute_contract_audit",
  "service_version": "1.0.0",
  "supplied_record_count": 5
}

Use with an agent

  1. Discover. Agents find this listing with GET https://bazaar.saylorinnovations.com/discovery/search?query=…, the MCP tool search_resources, or /discovery/resources.
  2. Inspect. Fetch /resources/34027.json for the price and payment options.
  3. Pay. Call GET https://api.zfinia.com/x402/v1/telemetry-attribute-contract-audit. The provider answers 402 with its payment requirements. An x402 client signs one of the options below and retries with PAYMENT-SIGNATURE.
  4. Execute. The provider returns 200 with the data. Agent Bazaar is not in the request path and never sees your payment.

For humans

You don't need an account or an API key; you need a wallet holding a small amount of USDC on Base, and an x402-capable client (see the examples below). Call the endpoint unpaid first to see exactly what it asks for.

Pricing & payment

Price
$0.12 / request
Protocol
x402 v2
Auth
No account or API key. Pay per request.
Networks
Base
Demand
1 calls · 1 unique payers in 30d (public x402 Bazaar data)

x402 payment requirements

SchemeNetworkAssetAmountPay toTimeout
exactBase
eip155:8453
USDC$0.120x25e8245f07d5e4873987293dad666afbe56a960860s
accepts[] (raw JSON)
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "payTo": "0x25e8245f07d5e4873987293dad666afbe56a9608",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "120000",
    "amountUsd": 0.12,
    "maxTimeoutSeconds": 60
  }
]

Schemas

Output schema (JSON Schema)
{
  "properties": {
    "example": {
      "type": "object"
    },
    "type": {
      "type": "string"
    }
  },
  "required": [
    "type"
  ],
  "type": "object"
}
Example shape — generated from the schema, not a captured live response
{
  "example": {},
  "type": "string"
}

Examples

curl
curl -X POST 'https://api.zfinia.com/x402/v1/telemetry-attribute-contract-audit' -H 'Content-Type: application/json' --data '{"attribute_pointer":"/attributes","cardinality_limit":3,"contract":{"optional":["region"],"required":["service","environment"],"types":{"environment":"string","latency_ms":"number","service":"string"}},"records":[{"attributes":{"environment":"prod","latency_ms":31.2,"region":"ap-southeast-2","request_id":"r-1","service":"checkout"},"name":"http.request"},{"attributes":{"environment":"prod","latency_ms":44,"region":"ap-southeast-2","request_id":"r-2","service":"checkout"},"name":"http.request"},{"attributes":{"environment":"prod","latency_ms":"51","request_id":"r-3","service":"checkout"},"name":"http.request"},{"attributes":{"environment":"prod","latency_ms":28,"request_id":"r-4","service":"checkout"},"name":"http.request"},{"name":"http.request"}]}'
# -> 402 Payment Required; read PAYMENT-REQUIRED
# retry the identical request with PAYMENT-SIGNATURE
JavaScript
const res = await fetch("https://api.zfinia.com/x402/v1/telemetry-attribute-contract-audit", {
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "body": "{\"attribute_pointer\":\"/attributes\",\"cardinality_limit\":3,\"contract\":{\"optional\":[\"region\"],\"required\":[\"service\",\"environment\"],\"types\":{\"environment\":\"string\",\"latency_ms\":\"number\",\"service\":\"string\"}},\"records\":[{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":31.2,\"region\":\"ap-southeast-2\",\"request_id\":\"r-1\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":44,\"region\":\"ap-southeast-2\",\"request_id\":\"r-2\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":\"51\",\"request_id\":\"r-3\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":28,\"request_id\":\"r-4\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"name\":\"http.request\"}]}"
});
if (res.status === 402) {
  const { accepts } = await res.json();
  // pay one of accepts[] via an x402 client, then retry with the payment header
}
Python
import httpx
import json
res = httpx.request("POST", "https://api.zfinia.com/x402/v1/telemetry-attribute-contract-audit", json=json.loads("{\"attribute_pointer\":\"/attributes\",\"cardinality_limit\":3,\"contract\":{\"optional\":[\"region\"],\"required\":[\"service\",\"environment\"],\"types\":{\"environment\":\"string\",\"latency_ms\":\"number\",\"service\":\"string\"}},\"records\":[{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":31.2,\"region\":\"ap-southeast-2\",\"request_id\":\"r-1\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":44,\"region\":\"ap-southeast-2\",\"request_id\":\"r-2\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":\"51\",\"request_id\":\"r-3\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"attributes\":{\"environment\":\"prod\",\"latency_ms\":28,\"request_id\":\"r-4\",\"service\":\"checkout\"},\"name\":\"http.request\"},{\"name\":\"http.request\"}]}"))
if res.status_code == 402:
    accepts = res.json()["accepts"]
    # pay one of accepts[] via an x402 client, then retry with the payment header

Details

Provider
api.zfinia.com
Endpoint
https://api.zfinia.com/x402/v1/telemetry-attribute-contract-audit
Machine-readable
/resources/34027.json