Skip to content
This repository was archived by the owner on Mar 11, 2026. It is now read-only.

fix: Instrumentation version contains package.json content#1310

Merged
losalex merged 4 commits intomainfrom
fix-instrumentation-version
Aug 20, 2022
Merged

fix: Instrumentation version contains package.json content#1310
losalex merged 4 commits intomainfrom
fix-instrumentation-version

Conversation

@losalex
Copy link
Copy Markdown
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 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
Copy Markdown

@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 👍

Comment thread src/utils/instrumentation.ts Outdated
Comment thread test/instrumentation.ts
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

4 participants