From 84c93ce31fab3fff2ec61d63f995c3446aa14b2f Mon Sep 17 00:00:00 2001 From: Max Parke Date: Fri, 28 Aug 2026 13:58:08 -0400 Subject: [PATCH] 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 --- src/agentex/lib/cli/handlers/deploy_handlers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/agentex/lib/cli/handlers/deploy_handlers.py b/src/agentex/lib/cli/handlers/deploy_handlers.py index 605d91709..218075de9 100644 --- a/src/agentex/lib/cli/handlers/deploy_handlers.py +++ b/src/agentex/lib/cli/handlers/deploy_handlers.py @@ -279,6 +279,9 @@ def merge_deployment_configs( "name": manifest.agent.name, "description": manifest.agent.description, "acp_type": manifest.agent.acp_type, + # Rendered as the pod's AGENT_VERSION (chart >=0.6.0), stamped + # onto every span as __agent_version__ by the SGP processor. + "version": image_tag, }, }, "replicaCount": manifest.deployment.global_config.replicaCount,