Skip to content

Commit 08e37f6

Browse files
authored
Change Workers Assets analytics to log version tag (#8117)
1 parent 35710e5 commit 08e37f6

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

.changeset/lucky-humans-glow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/workers-shared": patch
3+
---
4+
5+
Change asset-worker and router-worker analytics to using version tag rather than version UUID.

packages/workers-shared/asset-worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export default class extends WorkerEntrypoint<Env> {
101101
coloTier: this.env.COLO_METADATA.coloTier,
102102

103103
coloRegion: this.env.COLO_METADATA.coloRegion,
104-
version: this.env.VERSION_METADATA.id,
104+
version: this.env.VERSION_METADATA.tag,
105105
hostname: url.hostname,
106106
htmlHandling: config.html_handling,
107107
notFoundHandling: config.not_found_handling,

packages/workers-shared/router-worker/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565

6666
coloRegion: env.COLO_METADATA.coloRegion,
6767
hostname: url.hostname,
68-
version: env.VERSION_METADATA.id,
68+
version: env.VERSION_METADATA.tag,
6969
userWorkerAhead: env.CONFIG.invoke_user_worker_ahead_of_assets,
7070
});
7171
}

0 commit comments

Comments
 (0)