Skip to content

[AI Gateway] Clarify paid-request logging and Logpush body export - #35606

Open
bsobel-cf wants to merge 1 commit into
productionfrom
ai-gateway-logging-x402-logpush-bodies
Open

bsobel-cf wants to merge 1 commit into
productionfrom
ai-gateway-logging-x402-logpush-bodies

Conversation

@bsobel-cf

Copy link
Copy Markdown
Contributor

Summary

Clarifies how AI Gateway logging settings interact with paid requests and Logpush.

  • Logging, Default configuration: adds a note that requests paid through Unified Billing or Machine Payments (x402) are always logged, even when logs are turned off for the gateway or the request. Those entries include metadata and billing details, but not the request and response bodies. Previously this was only stated for Unified Billing, and only in the per-request headers section.
  • Logging, per-request note: points to that note instead of restating it, and adds x402.
  • Logpush: states that exported logs include the encrypted request and response bodies, even when payload collection is turned off.
  • REST API, per-request configuration: adds the missing cf-aig-collect-log-payload header to the table.

Validation

pnpm run check, pnpm run build, and pnpm run lint:nimbus pass locally. Checked the rendered notes, the #default-configuration anchor, and the table on the built pages.

@github-actions github-actions Bot added the product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ label Nov 25, 2026
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

AI Review

✅ Reviewed 3588f54 · 0 findings · incremental

Commands
  • /review Run a review now.
  • /full-review Review the entire PR diff.
  • /disable-auto-review Stop automatic reviews.
  • /rebase Rebase against production.

@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Review coverage

✅ The ownership area is covered.

✅ 1 area already covered
Area Approved by
ai-gateway
3 files changed
superhighfives
CODEOWNERS mappings for displayed areas (1)
Pattern Owners
/src/content/docs/ai-gateway/ @abhishekkankani, @adriandlam, @aninibread, @ethulia, @kathayl, @kflansburg, @mattrothenberg, @mchenco, @NikhilSinha1, @palashgo, @roerohan, @shridharathi, @oiricaud, @superhighfives, @thebongy, @zeke, @cloudflare/product-owners

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 25, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://ai-gateway-logging-x402-logpush-bodies.previews.developers.cloudflare.com (commit 3588f54)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://59dc452b.previews.developers.cloudflare.com 3588f54 2026-11-25T07:43:09.705Z Visit the dashboard ↗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:ai-gateway AI Gateway: https://developers.cloudflare.com/ai-gateway/ size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants