Skip to content
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

[aws detector] Remove error when instance metadata is unavailable #401

Conversation

dackroyd
Copy link
Contributor

Note the failure to detect any resource information MUST NOT be considered an error

When instance metadata is not available, this should not be treated as an error.

Small refactoring required to allow tests to mock the client, which should be mostly non-impacting for consumers.

Fixes #398

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Oct 14, 2020

CLA Check
The committers are authorized under a signed CLA.

> Note the failure to detect any resource information MUST NOT be
>  considered an error

When instance metadata is not available, this should not be treated
 as an error.

Small refactoring required to allow tests to mock the client, which
 should be _mostly_ non-impacting for consumers.
@dackroyd dackroyd force-pushed the remove-error-when-detecting-aws-resource-when-metadata-unavailable branch from 0cdc7bc to 8807fae Compare October 14, 2020 12:36
Copy link
Contributor

@MrAlias MrAlias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thanks for the contribution.

@MrAlias MrAlias merged commit 15f50e0 into open-telemetry:master Oct 16, 2020
@dackroyd dackroyd deleted the remove-error-when-detecting-aws-resource-when-metadata-unavailable branch October 16, 2020 01:41
@MrAlias MrAlias mentioned this pull request Nov 20, 2020
@pellared pellared added this to the untracked milestone Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AWS Resource detector fails with an error if metadata not available
4 participants