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: Instrumentation version contains package.json content #1310

Merged
merged 4 commits into from
Aug 20, 2022

Conversation

losalex
Copy link
Contributor

@losalex losalex commented Aug 18, 2022

In few cases when we retrieve the package version by calling getNodejsLibraryVersion the content from package.json is returned. This fix tries to retrieve version from JSON and returns 'unknown' value if version cannot be retrieved

@losalex losalex requested review from a team as code owners August 18, 2022 02:08
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Aug 18, 2022
@product-auto-label product-auto-label bot added the api: logging Issues related to the googleapis/nodejs-logging API. label Aug 18, 2022
Copy link

@ruyadorno ruyadorno left a comment

Choose a reason for hiding this comment

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

Just an optional suggestion to add a test, otherwise implementation LGTM 👍

src/utils/instrumentation.ts Outdated Show resolved Hide resolved
test/instrumentation.ts Show resolved Hide resolved
@losalex losalex added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 19, 2022
@losalex losalex added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 20, 2022
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 20, 2022
@losalex losalex merged commit 01e1286 into main Aug 20, 2022
@losalex losalex deleted the fix-instrumentation-version branch August 20, 2022 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/nodejs-logging API. size: s Pull request size is small.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants