-
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
[resourcedetectionprocessor] Add task revision to ECS resource detector #2814
[resourcedetectionprocessor] Add task revision to ECS resource detector #2814
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2814 +/- ##
=======================================
Coverage 91.57% 91.57%
=======================================
Files 447 447
Lines 22077 22078 +1
=======================================
+ Hits 20216 20217 +1
Misses 1392 1392
Partials 469 469
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -65,6 +65,7 @@ ec2: | |||
* aws.ecs.cluster.arn | |||
* aws.ecs.task.arn | |||
* aws.ecs.task.family | |||
* aws.ecs.task.revision |
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.
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.
attr.InsertString("aws.ecs.task.arn", tmdeResp.TaskARN) | ||
attr.InsertString("aws.ecs.task.family", tmdeResp.Family) | ||
attr.InsertString("aws.ecs.task.revision", tmdeResp.Revision) |
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.
Please define these in go.opentelemetry.io/collector/translator/conventions
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.
open-telemetry/opentelemetry-collector#2816, waiting on the spec PR to mark as ready. I will do a PR to update all these strings once that is merged
…or (#2814) Add task `Revision` field, defined as > The revision of the Amazon ECS task definition for the task. It is available in both the [v3](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v3.html) and [v4](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-metadata-endpoint-v4.html) endpoints. **Link to tracking Issue:** n/a **Testing:** Updated unit tests. **Documentation:** Added to README
Description:
Add task
Revision
field, defined asIt is available in both the v3 and v4 endpoints.
Link to tracking Issue: n/a
Testing: Updated unit tests.
Documentation: Added to README