Skip to content

Commit 84c93ce

Browse files
feat(cli): stamp global.agent.version from the image tag on helm deploys
With agentex-agent chart >=0.6.0 (sgp#5466) the value lands as the pod's AGENT_VERSION, which the SGP tracing processor stamps onto every span as __agent_version__. Old charts ignore the key, so ordering is free. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 0fa93b6 commit 84c93ce

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/agentex/lib/cli/handlers/deploy_handlers.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -279,6 +279,9 @@ def merge_deployment_configs(
279279
"name": manifest.agent.name,
280280
"description": manifest.agent.description,
281281
"acp_type": manifest.agent.acp_type,
282+
# Rendered as the pod's AGENT_VERSION (chart >=0.6.0), stamped
283+
# onto every span as __agent_version__ by the SGP processor.
284+
"version": image_tag,
282285
},
283286
},
284287
"replicaCount": manifest.deployment.global_config.replicaCount,

0 commit comments

Comments
 (0)