Skip to content

Commit d10d21b

Browse files
committed
fix(otel-ecs-fargate): map legacy http.status_code to http.response.status_code in semconv
The ECS Fargate example config is hand-maintained and does not consume the opentelemetry-collector helm chart, so the chart-level semconv fix (chart 0.135.2, bumped everywhere else via #973) does not reach it. Mirror the same mapping so span metrics carry the status code for spans using the old HTTP semantic convention.
1 parent caf0790 commit d10d21b

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

otel-ecs-fargate/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88

99
<!-- * [Update/Bug fix] message that describes the changes that you apply -->
1010

11+
### 1.1.1 / 2026-07-21
12+
13+
* [Bug fix] Map the legacy `http.status_code` attribute to `http.response.status_code` in the `semconv` transform so span metrics carry the status code for spans using the old HTTP semantic convention.
14+
1115
### 1.1.0 / 2026-06-30
1216

1317
* [UPDATE] Use `otlp` v1.10.0 for profiles ingestion

otel-ecs-fargate/config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,8 @@ processors:
555555
statements:
556556
- set(attributes["http.method"], attributes["http.request.method"]) where attributes["http.request.method"]
557557
!= nil
558+
- set(attributes["http.response.status_code"], attributes["http.status_code"]) where attributes["http.response.status_code"]
559+
== nil and attributes["http.status_code"] != nil
558560
transform/spanmetrics:
559561
error_mode: silent
560562
metric_statements:

0 commit comments

Comments
 (0)