🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
revert(deploy): remove ECS task_arn DD_TAGS tagging (LFE-11028) (#15335)
Niklas Semmlere585c3d371a4
diff --git a/web/entrypoint.sh b/web/entrypoint.shindex d8d53a1098..9061847427 100644--- a/web/entrypoint.sh+++ b/web/entrypoint.sh@@ -124,24 +124,5 @@ if [ $status -ne 0 ]; thenexit $statusfi-# On ECS, resolve the task ARN from the container metadata endpoint and append-# it to DD_TAGS so dd-trace stamps tracer telemetry (runtime metrics, spans)-# with task_arn. The full ARN exact-match joins with EventBridge's taskArn-# field and Datadog's ECS task_arn tag convention. Reuses the separator-# DD_TAGS already uses (comma or space). Best-effort, bounded to ~2s total:-# on any failure DD_TAGS is left untouched and startup proceeds — this block-# never fails boot.-if [ -n "$ECS_CONTAINER_METADATA_URI_V4" ]; then- _task_arn=$(timeout 2 wget -T 2 -qO- "${ECS_CONTAINER_METADATA_URI_V4}/task" | sed -n 's/.*"TaskARN"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')- if [ -n "$_task_arn" ]; then- case "$DD_TAGS" in- *,*) _sep="," ;;- *" "*) _sep=" " ;;- *) _sep="," ;;- esac- export DD_TAGS="${DD_TAGS:+${DD_TAGS}${_sep}}task_arn:${_task_arn}"- fi-fi-# Run the command passed to the docker image on startexec "$@"diff --git a/worker/entrypoint.sh b/worker/entrypoint.shindex 8f3d10cae7..a372cfab32 100644--- a/worker/entrypoint.sh+++ b/worker/entrypoint.sh@@ -19,21 +19,5 @@ if [ -z "$DATABASE_URL" ]; thenfifi-# On ECS, append task_arn:<full TaskARN> from the container metadata endpoint-# to DD_TAGS, reusing its existing separator (bounded ~2s total; never fails-# boot). Full ARN exact-match joins with EventBridge taskArn / Datadog's ECS-# task_arn tag convention.-if [ -n "$ECS_CONTAINER_METADATA_URI_V4" ]; then- _task_arn=$(timeout 2 wget -T 2 -qO- "${ECS_CONTAINER_METADATA_URI_V4}/task" | sed -n 's/.*"TaskARN"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')- if [ -n "$_task_arn" ]; then- case "$DD_TAGS" in- *,*) _sep="," ;;- *" "*) _sep=" " ;;- *) _sep="," ;;- esac- export DD_TAGS="${DD_TAGS:+${DD_TAGS}${_sep}}task_arn:${_task_arn}"- fi-fi-# Run the command passed to the docker image on startexec "$@"