-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[processor/resourcedetection]: Populate "aws.ecs.task.id" property for ECS Tasks (#8274) #29602
[processor/resourcedetection]: Populate "aws.ecs.task.id" property for ECS Tasks (#8274) #29602
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generated code is out of date, please run "make generate" and commit the changes in this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aws.ecs.task.id
is not specified in the semantic conventions https://github.com/open-telemetry/semantic-conventions/blob/v1.23.1/docs/resource/cloud-provider/aws/ecs.md. While this is not a hard requirement, it would greatly help in reviewing this PR and ensuring the value on this attributes matches what the awsefmexporter
and other present or future components expect. Would you be willing to file a PR on semantic-conventions first?
Added `aws.ecs.task.id`, to reflect changes introduced by [#29062][pr] Also, fixed description for `aws.ecs.task.arn`, as it does not reflect TaskDefinition ARN (as was incorrectly stated), but the ARN of the running ECS Task. [pr]: open-telemetry/opentelemetry-collector-contrib#29602
Added `aws.ecs.task.id`, to reflect changes introduced by [#29062][pr] Also, fixed description for `aws.ecs.task.arn`, as it does not reflect TaskDefinition ARN (as was incorrectly stated), but the ARN of the running ECS Task. [pr]: open-telemetry/opentelemetry-collector-contrib#29602
Added `aws.ecs.task.id`, to reflect changes introduced by [#29062][pr] Also, fixed description for `aws.ecs.task.arn`, as it does not reflect TaskDefinition ARN (as was incorrectly stated), but the ARN of the running ECS Task. [pr]: open-telemetry/opentelemetry-collector-contrib#29602
Can you add a changelog note? You can use |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Would like someone from AWS (@bryan-aguilar ? @Aneurysm9 ?) to take a look at this before we merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you for filing the semantic conventions PR also.
Description:
The
resourcedetection
processor now populatesaws.ecs.task.id
property (in addition to otheraws.ecs.task.*
properties). This simplifies configuration of
awsemfexporter
, which internally searches foraws.ecs.task.id
property when using
TaskId
placeholder inloggroup
/logstream
name template.Link to tracking Issue: #8274
Testing: ECS Task ARNs come in two versions. In the old one, the last part of the ARN contains only the
task/<task-id>
. In the new one, it containstask/cluster-name/task-id
. Implementation and Unit Tests have been added to handle both cases.Documentation:
README.md
now also mentionsaws.ecs.task.id
as inferred property for ECS.