Skip to content

Commit

Permalink
Rename attribute to script_version
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniFoldi committed Apr 7, 2024
1 parent c77c240 commit dda0065
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/instrumentation/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export function versionAttributes(env: unknown): Record<string, string | undefin
if (typeof env === 'object' && env !== null) {
for (const [binding, data] of Object.entries(env)) {
if (isVersionMetadata(data)) {
attributes['cf.gradual_rollouts.binding'] = binding
attributes['cf.gradual_rollouts.id'] = data.id
attributes['cf.gradual_rollouts.tag'] = data.tag
attributes['cf.script_version.binding'] = binding
attributes['cf.script_version.id'] = data.id
attributes['cf.script_version.tag'] = data.tag
// Version metadata bindings are identical, so we can stop after the first one found
break
}
Expand Down

0 comments on commit dda0065

Please sign in to comment.