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

[2.x] Fix Crashing with Old Node.JS Versions When Manually Instrumenting #1362

Merged

Conversation

JacksonWeber
Copy link
Contributor

@JacksonWeber JacksonWeber commented Jul 12, 2024

Fix node.js versions that are not supported by the Azure SDK by conditionally loading Azure SDK packages when manually instrumenting.

Azure/azure-sdk-for-js#30217

@JacksonWeber JacksonWeber changed the title Fix Old Node.js support by conditionally loading core-auth. Fix Old Node.js support by conditionally loading core-auth Jul 12, 2024
README.md Outdated
@@ -32,7 +32,8 @@ You can manually track more aspects of your app and system using the API describ



## Supported Node.JS versions
## Supported Node.JS versions
> *Note:* Versions of Node.JS that are not supported by the [JS Azure SDK](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) will not support AAD authentication.
Copy link
Member

Choose a reason for hiding this comment

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

This is a little bit confusing, we need azure/identity package to be included to use the feature, as customer need to pass an instance of a Credential object, so this extra note could cause more confusion than helping here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll reword to make it clearer what the exception to our support for older versions really is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I moved the note to the aadCredential description. Hopefully that makes it clearer that old versions of Node don't impact using any other scenario with the SDK.

package-lock.json Outdated Show resolved Hide resolved
@JacksonWeber JacksonWeber changed the title Fix Old Node.js support by conditionally loading core-auth Fix Old Node.js Support by Importing Types Only Jul 16, 2024
@JacksonWeber JacksonWeber changed the title Fix Old Node.js Support by Importing Types Only Fix Old Node.js Support When Manually Instrumenting Jul 16, 2024
@JacksonWeber JacksonWeber changed the title Fix Old Node.js Support When Manually Instrumenting Fix Crashing with Old Node.JS Versions When Manually Instrumenting Jul 16, 2024
@JacksonWeber JacksonWeber merged commit 8173f7c into microsoft:2.x Jul 16, 2024
1 check passed
@JacksonWeber JacksonWeber changed the title Fix Crashing with Old Node.JS Versions When Manually Instrumenting [2.x] Fix Crashing with Old Node.JS Versions When Manually Instrumenting Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants