Skip to content

ecosystem: add x402-insights — spend observability for facilitator flows#30

Closed
Bortlesboat wants to merge 1 commit intocoinbase:mainfrom
Bortlesboat:ecosystem/x402-insights
Closed

ecosystem: add x402-insights — spend observability for facilitator flows#30
Bortlesboat wants to merge 1 commit intocoinbase:mainfrom
Bortlesboat:ecosystem/x402-insights

Conversation

@Bortlesboat
Copy link
Copy Markdown

x402-insights — Spend Observability

Category: Infrastructure & Tooling

Repo: https://github.com/Bortlesboat/x402-insights

Instruments the six lifecycle hooks on x402Facilitator (onBeforeVerify, onAfterVerify, onVerifyFailure, onBeforeSettle, onAfterSettle, onSettleFailure) to capture spend, latency, and errors per endpoint.

What it shows:

  • Cost concentration by endpoint
  • Verify vs settle latency split (settle dominates ~20:1 in practice)
  • Retry spend as % of total
  • Error rate and failed settlement cost

Integration:

import { attachInsights } from "@x402-insights/facilitator";
attachInsights(facilitator, { baseUrl, apiKey, source: "my-facilitator" });

Tested on Base Sepolia with real verify/settle calls — not simulated traffic.

Changes:

  • typescript/site/app/ecosystem/partners-data/x402-insights/metadata.json
  • typescript/site/public/logos/x402-insights.svg

@Bortlesboat
Copy link
Copy Markdown
Author

Reopened this against the canonical repo at x402-foundation#1938 because coinbase/x402 is currently a fork of x402-foundation/x402 and is behind Foundation main. Closing this fork-targeted copy to keep review in one place.

@Bortlesboat Bortlesboat closed this Apr 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

1 participant