You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
http.route carries raw paths for CMS pages (20,714 distinct values on the highest-volume metric) #428
http.server.request.duration is the highest-volume metric in the pipeline — 19,055,009 rows in 3h, and otel_metrics_histogram sits at 149.65 GB on disk.
Its http.route attribute has 20,714 distinct values across only 6 tenants (~9,900 series per tenant, vs ~390 for the legacy runtime's equivalent). The other attributes are all well behaved: url.path is 1, deco.http.status_class is 4, http.response.status_code is 20, user_agent.original is 1. So http.route is carrying essentially all of the cardinality.
The cause is that route templating is inconsistent — framework routes are templated, CMS pages are not:
/_serverFn/:id ← templated ✅
/:slug/p ← templated ✅
/api/sessions ← fine
/mochila-de-couro ← raw path ❌
/granado/eau-de-toilette-spritz-100ml ← raw path ❌
/deco/invoke/magento/loaders/features ← raw
/.well-known/passkey-endpoints ← raw
Every product that has a CMS page becomes its own route. Per semconv, http.route is meant to be the route template precisely so that this cannot happen.
Why this is an issue and not a PR
I do not know how CMS-defined pages should be represented, and that is a product decision rather than a mechanical one. A CMS site genuinely has thousands of distinct paths, so "just template it" is not automatically right.
Options worth weighing:
Collapse CMS-matched pages to a single sentinel (/:cmsPage), keeping framework routes as-is. Cheapest, loses per-page latency entirely.
Collapse to the page type or the matched block/page id, which is bounded by the number of page templates rather than the number of URLs.
Keep the path but move it off the metric onto spans, where high cardinality is acceptable for point lookups.
Option 2 looks closest to preserving intent — you can still answer "are PDPs slow" without one series per product.
Note there is already a HIGH_CARDINALITY_BLOCKLIST in observability.ts, so the discipline exists; http.route simply is not covered by it because it is normally safe.
Happy to send the PR once there is a direction.
Related
Separate from #427 (bucket boundaries on the same metric family), which is a unit bug rather than a cardinality one. Both were found while making the general-overview-otel dashboard cover TanStack tenants.
Activity
github-actions commentedon Aug 13, 2026
🎉 This issue has been resolved in version 7.37.2 🎉
The release is available on:
blocks-v7.37.2Your semantic-release bot 📦🚀
fix(blocks): collapse CMS content slugs in normalizePath (decocms#447)