-
Notifications
You must be signed in to change notification settings - Fork 226
feat: contribute aws ecs resource detector #1477
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
feat: contribute aws ecs resource detector #1477
Conversation
b07b5d5 to
ec5c117
Compare
kaylareopelle
left a comment
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.
Thank you for this PR! I need more time to get deeper into this and run some E2E tests to complete my review. If you know of any AWS ECS experts who are able to help validate things, we'd love their assistance reviewing as well.
| logs_attributes = get_logs_resource(container_metadata) | ||
| resource_attributes.merge!(logs_attributes) | ||
| rescue StandardError => e | ||
| OpenTelemetry.logger.debug("ECS resource detection failed: #{e.message}") |
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.
What do you think about using the OpenTelemetry.handle_error API for the rescues in this file rather than a debug-level log?
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.
Thanks Kayla - the suggestion sounds good to me. I'll update the error handling to use this API instead.
I don't know of any AWS ECS experts in the upstream community. However, I can reach out to an ECS expert from my team and have them help take a look.
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.
Sounds great, thank you!
kaylareopelle
left a comment
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.
Thanks, @yiyuan-he!
What does this pull request do?
Adds functionality for ECS resource detection to AWS resource detector gem. It is similar to the implementation for Python.
Related Issues
#34