feat(observability): wire three-channel o11y model into template - #13
Merged
Conversation
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>
Deploying with
|
| 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>
Contributor
Preview deployed
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
tail_consumers→deco-otel-tailfor 100% capture of uncaught throws, exceededCpu/Memory, and rawconsole.errorversion_metadatabinding soinstrumentWorkercan surfaceservice.versionon every span/logvarswithDECO_SITE_NAME,DECO_ENV_NAME, andDECO_OTEL_*_ENDPOINTpointing todeco-otel-ingestobservabilityblock with the full three-channel config:enabled: true, 1% sampled logs + traces withpersist: trueand named CF Destinationsanalytics_engine_datasetsleft commented — needs a site-specific dataset name when usedMirrors the production configuration in
casaevideo-tanstack/wrangler.jsonc.Setup notes for new storefronts
YOUR_SITE_NAMEinvars.DECO_SITE_NAMEwith the actual site sluganalytics_engine_datasetsand setdatasettodeco_metrics_<site-slug>deco-otel-ingest-logsanddeco-otel-ingest-tracesdestinations are registered in the CF dashboard (Workers & Pages → Observability → Destinations) on the deco-cx account🤖 Generated with Claude Code