Skip to content

feat(cloud): Sentry, Axiom telemetry, and observability fixes - #174

Merged
RhysSullivan merged 2 commits into
mainfrom
feat/sentry-observability
Apr 10, 2026
Merged

feat(cloud): Sentry, Axiom telemetry, and observability fixes#174
RhysSullivan merged 2 commits into
mainfrom
feat/sentry-observability

Conversation

@RhysSullivan

Copy link
Copy Markdown
Collaborator

Summary

  • Sentry server + client error tracking with ad-blocker tunnel
  • Error response sanitization — only declared API errors pass through
  • OTEL telemetry layer for Effect spans → Axiom
  • MCP session DO long-lived DB connection fix
  • crypto.ts require() → import for Workers compat
  • Deploy script with 1Password env resolution

Test plan

  • Errors appear in Sentry, not blocked by ad blockers
  • Error responses don't leak internal messages
  • MCP tool calls work after init
  • Secrets can be created

…ility fixes

- Add @sentry/cloudflare wrapping fetch handler for server-side error capture
- Add @sentry/react for client-side error tracking with ad-blocker tunnel
- Sanitize error responses — only declared API errors pass through, everything
  else returns generic "Internal server error" to prevent leaking internals
- Add Sentry tunnel endpoint at /api/sentry-tunnel to bypass ad blockers
- Add OTEL telemetry layer exporting Effect spans to Axiom
- Fix MCP session DO to use long-lived DB connection instead of request-scoped
  (fixes stale connection errors on tool calls)
- Fix crypto.ts require() → import for Workers compatibility
- Add deploy script using op run for 1Password env resolution
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 10, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing c361f61 Commit Preview URL

Branch Preview URL
Apr 10 2026, 09:27 PM

@RhysSullivan
RhysSullivan force-pushed the feat/sentry-observability branch 2 times, most recently from 2f39f25 to e70300c Compare April 10, 2026 21:24

Copy link
Copy Markdown
Collaborator Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@RhysSullivan
RhysSullivan merged commit d80a87c into main Apr 10, 2026
2 checks passed
RhysSullivan added a commit that referenced this pull request May 31, 2026
* feat(cloud): add Sentry error tracking, Axiom telemetry, and observability fixes

- Add @sentry/cloudflare wrapping fetch handler for server-side error capture
- Add @sentry/react for client-side error tracking with ad-blocker tunnel
- Sanitize error responses — only declared API errors pass through, everything
  else returns generic "Internal server error" to prevent leaking internals
- Add Sentry tunnel endpoint at /api/sentry-tunnel to bypass ad blockers
- Add OTEL telemetry layer exporting Effect spans to Axiom
- Fix MCP session DO to use long-lived DB connection instead of request-scoped
  (fixes stale connection errors on tool calls)
- Fix crypto.ts require() → import for Workers compatibility
- Add deploy script using op run for 1Password env resolution

* style: format
@RhysSullivan
RhysSullivan deleted the feat/sentry-observability branch June 11, 2026 08:01
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