Skip to content

Commit

Permalink
Change Workers Assets analytics to log version tag (#8117)
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshyDev authored Feb 12, 2025
1 parent 35710e5 commit 08e37f6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/lucky-humans-glow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-shared": patch
---

Change asset-worker and router-worker analytics to using version tag rather than version UUID.
2 changes: 1 addition & 1 deletion packages/workers-shared/asset-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export default class extends WorkerEntrypoint<Env> {
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,
Expand Down
2 changes: 1 addition & 1 deletion packages/workers-shared/router-worker/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
}
Expand Down

0 comments on commit 08e37f6

Please sign in to comment.