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 #2313

Closed

Conversation

qbedard
Copy link

@qbedard qbedard commented Jul 2, 2024

Which problem is this PR solving?

#2311

Short description of the changes

In auto-instrumentations-node, the check for detector configuration values is evaluating the false-iness of the map value, causing it to incorrectly treat Detector | Detector[] values as false-y. This PR changes that check to instead check for the the presence of the key value in the map.

@qbedard qbedard requested a review from a team as a code owner July 2, 2024 17:29
Copy link

linux-foundation-easycla bot commented Jul 2, 2024

CLA Signed


The committers listed above are authorized under a signed CLA.

Copy link
Contributor

@trentm trentm left a comment

Choose a reason for hiding this comment

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

@blumamir
Copy link
Member

blumamir commented Aug 9, 2024

@qbedard thank you for documenting this issue and working on a fix. I too think the fix should be in sdk-node package. would you like to implement the fix there?

@qbedard
Copy link
Author

qbedard commented Aug 15, 2024

Should be fixed in open-telemetry/opentelemetry-js#4879. Closing.

@qbedard qbedard closed this Aug 15, 2024
@qbedard qbedard deleted the fix-auto-resource-detector branch August 15, 2024 15:49
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.

None yet

6 participants