Skip to content

feat(observability): wire three-channel o11y model into template - #13

Merged
igoramf merged 2 commits into
mainfrom
feat/observability-three-channel
Jun 10, 2026
Merged

feat(observability): wire three-channel o11y model into template#13
igoramf merged 2 commits into
mainfrom
feat/observability-three-channel

Conversation

@igoramf

@igoramf igoramf commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds tail_consumersdeco-otel-tail for 100% capture of uncaught throws, exceededCpu/Memory, and raw console.error
  • Adds version_metadata binding so instrumentWorker can surface service.version on every span/log
  • Adds vars with DECO_SITE_NAME, DECO_ENV_NAME, and DECO_OTEL_*_ENDPOINT pointing to deco-otel-ingest
  • Replaces the minimal observability block with the full three-channel config: enabled: true, 1% sampled logs + traces with persist: true and named CF Destinations
  • analytics_engine_datasets left commented — needs a site-specific dataset name when used

Mirrors the production configuration in casaevideo-tanstack/wrangler.jsonc.

Setup notes for new storefronts

  1. Replace YOUR_SITE_NAME in vars.DECO_SITE_NAME with the actual site slug
  2. Uncomment analytics_engine_datasets and set dataset to deco_metrics_<site-slug>
  3. Ensure deco-otel-ingest-logs and deco-otel-ingest-traces destinations are registered in the CF dashboard (Workers & Pages → Observability → Destinations) on the deco-cx account

🤖 Generated with Claude Code

Add tail worker, version metadata, OTEL endpoints, and full CF
Destinations config (1% sampled logs + traces → deco-otel-ingest)
mirroring the production setup in casaevideo-tanstack.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 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
storefront-tanstack 0339a7b Commit Preview URL

Branch Preview URL
Jun 10 2026, 01:59 PM

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@igoramf
igoramf merged commit 9c87129 into main Jun 10, 2026
2 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

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