Skip to content

[workers-shared] Split customer-facing asset analytics#14711

Draft
ericclemmons wants to merge 2 commits into
mainfrom
codex/asset-worker-version-analytics
Draft

[workers-shared] Split customer-facing asset analytics#14711
ericclemmons wants to merge 2 commits into
mainfrom
codex/asset-worker-version-analytics

Conversation

@ericclemmons

@ericclemmons ericclemmons commented Jul 16, 2026

Copy link
Copy Markdown
Member

tl;dr – Write customer-safe Asset Worker request metrics to a dedicated Ready Analytics binding.

Asset Worker currently mixes operational service telemetry with fields consumed by the customer-facing Workers Analytics GraphQL API. This introduces a separate CUSTOMER_ANALYTICS write path with an explicit allowlist: account/script identity, colo, status, hostname, cache status, and the customer Worker version UUID.

The existing ANALYTICS payload and its platform-owned Asset Worker build version remain unchanged. Customer events are emitted once from the inner request handler so the new dataset does not expose operational fields or double-count outer and inner entrypoints.

This producer is one part of the rollout. Ready Analytics must provision and map the dedicated customer namespace, and Workers Pipelines must populate assetConfig.script_version_id, before GraphQL and Stratus consume it.


  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: This is an internal analytics producer contract with no public API or user-facing behavior.

References: Google Chat design thread · Ready Analytics !1388 · GraphQL !3466 · Stratus !40670

@changeset-bot

changeset-bot Bot commented Jul 16, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: b92557c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@cloudflare/workers-shared Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@ask-bonk

ask-bonk Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

UnknownError: ProviderInitError

github run

@ask-bonk

ask-bonk Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

@ericclemmons Bonk workflow failed. Check the logs for details.

View workflow run · To retry, trigger Bonk again.

@github-actions

Copy link
Copy Markdown
Contributor

✅ All changesets look good

@pkg-pr-new

pkg-pr-new Bot commented Jul 16, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@14711

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@14711

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@14711

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14711

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@14711

miniflare

npm i https://pkg.pr.new/miniflare@14711

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@14711

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@14711

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@14711

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14711

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14711

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@14711

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14711

wrangler

npm i https://pkg.pr.new/wrangler@14711

commit: b92557c

@ericclemmons ericclemmons self-assigned this Jul 16, 2026
@ask-bonk

ask-bonk Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

UnknownError: ProviderInitError

github run

@ericclemmons ericclemmons changed the title [workers-shared] Emit Worker version IDs in asset analytics [workers-shared] Split customer-facing asset analytics Jul 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants