forked from open-telemetry/opentelemetry-go-contrib
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make ECS detector not error when not on platform (#1428)
* Make ECS detector not error when not on platform The OpenTelemetry specification states "failure to detect any resource information MUST NOT be considered an error". Update the ECS detector to not return an error when not running on the ECS platform. Additionally, return nil instead of an empty resource to accommodate a quick merge when this detector is used. A nil value means the other resource this will be merged with will be returned immediately instead of working through the actual merge. * Add changes to changelog * Match ECS detector tests with expected behavior * Add PR number to changelog * Remove unused errNotOnECS
- Loading branch information
Showing
3 changed files
with
8 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters