Skip to content

Add HTTP breadcrumb enrichment demo - #3

Open
macuzi wants to merge 1 commit into
mainfrom
macuzi/http-breadcrumb-enrichment
Open

Add HTTP breadcrumb enrichment demo#3
macuzi wants to merge 1 commit into
mainfrom
macuzi/http-breadcrumb-enrichment

Conversation

@macuzi

@macuzi macuzi commented Apr 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a demo showing free-plan customers how to capture HTTP request/response params in Sentry breadcrumbs (no Session Replay needed)
  • Enriches auto-generated fetch breadcrumbs with request params, headers, method, and response status via beforeBreadcrumb hint
  • Adds manual Sentry.addBreadcrumb() for response body (async, truncated to 1KB)
  • New "Capture HTTP Breadcrumbs" button in the sandbox UI with SDK/branch badge

Test plan

  • Run npm run dev, open localhost
  • Verify SDK badge shows @sentry/browser · macuzi/http-breadcrumb-enrichment
  • Click "Capture HTTP Breadcrumbs" — check Sentry issue breadcrumbs for request_params, response_status, and response_body
  • Verify existing buttons (Capture Exception, PII Scrubbing, Breadcrumb Filtering) still work

🤖 Generated with Claude Code

…rams

Two-part strategy: beforeBreadcrumb enriches auto fetch breadcrumbs with
request params, headers, and response status synchronously via hint;
Sentry.addBreadcrumb() adds response body after async read. Designed to
show free-plan customers how to see HTTP details without Session Replay.
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