diff --git a/.changeset/lucky-humans-glow.md b/.changeset/lucky-humans-glow.md new file mode 100644 index 000000000000..7fe037f3a388 --- /dev/null +++ b/.changeset/lucky-humans-glow.md @@ -0,0 +1,5 @@ +--- +"@cloudflare/workers-shared": patch +--- + +Change asset-worker and router-worker analytics to using version tag rather than version UUID. diff --git a/packages/workers-shared/asset-worker/src/index.ts b/packages/workers-shared/asset-worker/src/index.ts index ac71b64e5d60..ac30a7c880ae 100644 --- a/packages/workers-shared/asset-worker/src/index.ts +++ b/packages/workers-shared/asset-worker/src/index.ts @@ -101,7 +101,7 @@ export default class extends WorkerEntrypoint { coloTier: this.env.COLO_METADATA.coloTier, coloRegion: this.env.COLO_METADATA.coloRegion, - version: this.env.VERSION_METADATA.id, + version: this.env.VERSION_METADATA.tag, hostname: url.hostname, htmlHandling: config.html_handling, notFoundHandling: config.not_found_handling, diff --git a/packages/workers-shared/router-worker/src/index.ts b/packages/workers-shared/router-worker/src/index.ts index 3688e84d4eaf..d6c328486203 100644 --- a/packages/workers-shared/router-worker/src/index.ts +++ b/packages/workers-shared/router-worker/src/index.ts @@ -65,7 +65,7 @@ export default { coloRegion: env.COLO_METADATA.coloRegion, hostname: url.hostname, - version: env.VERSION_METADATA.id, + version: env.VERSION_METADATA.tag, userWorkerAhead: env.CONFIG.invoke_user_worker_ahead_of_assets, }); }