diff --git a/CHANGELOG.md b/CHANGELOG.md index 4e104a5640e..a87533242f9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -32,6 +32,7 @@ release. - Add details for filling semantic conventions for AWS Lambda ([#1442](https://github.com/open-telemetry/opentelemetry-specification/pull/1442)) - Update semantic conventions to distinguish between int and double ([#1550](https://github.com/open-telemetry/opentelemetry-specification/pull/1550)) +- Add semantic convention for AWS ECS task revision ([#1581](https://github.com/open-telemetry/opentelemetry-specification/pull/1581)) ### Compatibility diff --git a/semantic_conventions/resource/cloud_provider/aws/ecs.yaml b/semantic_conventions/resource/cloud_provider/aws/ecs.yaml index 3c8b0d72268..7bc7610baed 100644 --- a/semantic_conventions/resource/cloud_provider/aws/ecs.yaml +++ b/semantic_conventions/resource/cloud_provider/aws/ecs.yaml @@ -35,4 +35,9 @@ groups: brief: > The task definition family this task definition is a member of. examples: ['opentelemetry-family'] + - id: task.revision + type: string + brief: > + The revision for this task definition. + examples: ["8", "26"] diff --git a/specification/resource/semantic_conventions/cloud_provider/aws/ecs.md b/specification/resource/semantic_conventions/cloud_provider/aws/ecs.md index 5055702d4e6..fd17affac11 100644 --- a/specification/resource/semantic_conventions/cloud_provider/aws/ecs.md +++ b/specification/resource/semantic_conventions/cloud_provider/aws/ecs.md @@ -14,6 +14,7 @@ | `aws.ecs.launchtype` | string | The [launch type](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/launch_types.html) for an ECS task. | `ec2`; `fargate` | No | | `aws.ecs.task.arn` | string | The ARN of an [ECS task definition](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definitions.html). | `arn:aws:ecs:us-west-1:123456789123:task/10838bed-421f-43ef-870a-f43feacbbb5b` | No | | `aws.ecs.task.family` | string | The task definition family this task definition is a member of. | `opentelemetry-family` | No | +| `aws.ecs.task.revision` | string | The revision for this task definition. | `8`; `26` | No | `aws.ecs.launchtype` MUST be one of the following: