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

fix(auto-instrumentations-node): check if detector key in map rather than value false-iness #2312

Closed
wants to merge 1 commit into from
Closed

Conversation

qbsc
Copy link

@qbsc qbsc commented Jul 2, 2024

Which problem is this PR solving?

#2311

Short description of the changes

In auto-instrumentations-node, checking the false-iness of Detector | Detector[] values in the detector map was incorrectly causing:

Invalid resource detector "aws" specified in the environment variable OTEL_NODE_RESOURCE_DETECTORS

This PR fixes the issue by checking for the provided detector key in the detector map instead.

Copy link

CLA Not Signed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants