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
Embed phase 2: count embed calls at the edge with Analytics Engine #412
Part of #410, which is the plan of record. Scope, files, and decision gates: the "Phase 2" sections of #410. Starts after phase 1 merges (both change src/middleware.ts).
Merged to staging in #417 as ce5bbea. Kept open until the rows are read back through the observability dashboard (nemarOrg/nemar-observability#97) and the post-release production smoke check in ADR 0024 passes.
Gate 2 (rows in nemar_website_embeds_dev) passes. The owner ran it with a new Account Analytics Read token, which is now also on nemar-observability-dev. The query covered the last 24 hours of 2026-10-05, SUM(_sample_interval) grouped by dataset, host and kind:
Every expected row is present: localhost/iframe, example.org/iframe, example.org/none (Referer only), empty host/document, empty host/none ×2 (cache MISS, then HIT), repeat.example ×2, nm000292/miss-then-hit.example ×2, and after-review.invalid.
No must-not-count host appears anywhere in the 24 hours: head-must-not-count.example (HEAD), and prefetch-must-not-count.example and purpose-must-not-count.example (prefetch).
final-head.invalid (1): one framed GET was sent with that Referer to each of the embed, the dataset page and the home page on Count embed calls at the edge (phase 2 of #410) #417's final preview. Only the embed counted.
Staging writes to the dev dataset. The xx099901 rows are test.nemar.org traffic: the cross-site Firefox and Chromium check page on 127.0.0.1:8080 (iframe), the direct-load width sweeps for Embed: two-row toolbar in narrow frames #420 (document) and curl checks (none).
This issue stays open for the production smoke check after the release: one load with Sec-Fetch-Dest: iframe and Referer: https://smoke.invalid/, then query nemar_website_embeds for blob2 = 'smoke.invalid'.
Production smoke check passes on 0.2.28 (51160dad, released 2026-10-05 as #424). One request to https://nemar.org/dataset/on007753/embed with Sec-Fetch-Dest: iframe and Referer: https://smoke.invalid/ was sent at 17:09:32 UTC and answered 200. Querying nemar_website_embeds for blob2 = 'smoke.invalid' returns exactly one row: on007753 smoke.invalid iframe 1. So the production EMBED_ANALYTICS binding is live and writes to the production dataset. Gate 2 on staging passed earlier, as recorded above.
Activity
Count embed calls at the edge (#417)
neuromechanist commentedon Oct 5, 2026
Merged to
stagingin #417 as ce5bbea. Kept open until the rows are read back through the observability dashboard (nemarOrg/nemar-observability#97) and the post-release production smoke check in ADR 0024 passes.neuromechanist commentedon Oct 5, 2026
Gate 2 (rows in
nemar_website_embeds_dev) passes. The owner ran it with a new Account Analytics Read token, which is now also onnemar-observability-dev. The query covered the last 24 hours of 2026-10-05,SUM(_sample_interval)grouped by dataset, host and kind:Against the #417 gate 2 table:
localhost/iframe,example.org/iframe,example.org/none(Referer only), empty host/document, empty host/none×2 (cache MISS, then HIT),repeat.example×2,nm000292/miss-then-hit.example×2, andafter-review.invalid.head-must-not-count.example(HEAD), andprefetch-must-not-count.exampleandpurpose-must-not-count.example(prefetch).final-head.invalid(1): one framed GET was sent with that Referer to each of the embed, the dataset page and the home page on Count embed calls at the edge (phase 2 of #410) #417's final preview. Only the embed counted.xx099901rows are test.nemar.org traffic: the cross-site Firefox and Chromium check page on127.0.0.1:8080(iframe), the direct-load width sweeps for Embed: two-row toolbar in narrow frames #420 (document) and curl checks (none).iframe(4) is the case of ano-referrerparent with noreferrerpolicyattribute on the iframe, as Count embed calls at the edge (phase 2 of #410) #417 recorded.This issue stays open for the production smoke check after the release: one load with
Sec-Fetch-Dest: iframeandReferer: https://smoke.invalid/, then querynemar_website_embedsforblob2 = 'smoke.invalid'.neuromechanist commentedon Oct 5, 2026
Production smoke check passes on 0.2.28 (
51160dad, released 2026-10-05 as #424). One request tohttps://nemar.org/dataset/on007753/embedwithSec-Fetch-Dest: iframeandReferer: https://smoke.invalid/was sent at 17:09:32 UTC and answered 200. Queryingnemar_website_embedsforblob2 = 'smoke.invalid'returns exactly one row:on007753 smoke.invalid iframe 1. So the productionEMBED_ANALYTICSbinding is live and writes to the production dataset. Gate 2 on staging passed earlier, as recorded above.