Skip to content

Replace live values in the Commerce Layer captures - #106

Merged
garethx merged 1 commit into
mainfrom
fix/commercelayer-capture-scrub
Nov 26, 2026
Merged

garethx merged 1 commit into
mainfrom
fix/commercelayer-capture-scrub

Conversation

@garethx

@garethx garethx commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

Replaces values in the Commerce Layer captures (providers/commercelayer/current/) that may have been live, keeping each file's structure.

  • newrelic header (all 7 files): still base64 JSON with the same keys, with the account, app, trace and transaction IDs zeroed.
  • tracestate header (all 7 files): trust key, account, app, span and transaction fields zeroed.
  • gift_cards.* (4 files): data.attributes.code is the nil UUID.
  • orders.create's data.attributes.token was already a placeholder and is unchanged.

These files are captures (no source key), so the doc-samples guard allows direct edits; the guard script passes locally. yarn test passes 26/26 and compile.ts compiles.

🤖 Generated with Claude Code

The seven captures under providers/commercelayer/current/ still carried
New Relic distributed-tracing headers from the real deliveries, and the
four gift_cards captures carried the gift card code. Swap them for
placeholders of the same shape: zeroed account, app, trace and span IDs
in `newrelic` (still base64 JSON) and `tracestate`, and the nil UUID for
`data.attributes.code`. orders.create's `data.attributes.token` was
already a placeholder from 9a6378f, so it is unchanged. These are
captures (no `source` key), so the doc samples guard does not apply.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
webhook-samples Ready Ready Preview Nov 26, 2026 2:58pm UTC

Request Review

@garethx
garethx merged commit 9cd75f7 into main Nov 26, 2026
5 checks passed
@garethx
garethx deleted the fix/commercelayer-capture-scrub branch November 26, 2026 17:02

This branch was successfully deployed

1 active deployment
Preview — eaaa5e36 Deployed Nov 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant