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(resources): change fs/promises import to be node 12 compatible #3681

Merged
merged 3 commits into from
Mar 16, 2023

Conversation

pichlermarc
Copy link
Member

Which problem is this PR solving?

This PR changes the import according to nodejs/node#35740 (comment) to make the default detectors work again with Node.js v12.

Note: Node.js <14 remains unsupported by this project.

Fixes #3673

Short description of the changes

Type of change

  • Bug fix

How Has This Been Tested?

  • Local testing

Note: CI does not run for Node 12

Checklist:

  • Followed the style guidelines of this project
  • Unit tests have been added
  • Documentation has been updated

@pichlermarc pichlermarc requested a review from a team as a code owner March 16, 2023 13:00
@dyladan dyladan merged commit a96e429 into open-telemetry:main Mar 16, 2023
@dyladan dyladan deleted the fix/fs-promises branch March 16, 2023 21:20
dyladan pushed a commit to dyladan/opentelemetry-js that referenced this pull request Mar 16, 2023
…pen-telemetry#3681)

* fix(resources): change fs/promises import to be node 12 compatible

* fix(changelog): add changelog entry.
@dyladan dyladan mentioned this pull request Mar 16, 2023
dyladan added a commit that referenced this pull request Mar 20, 2023
* fix(resource): make properties for async resource resolution optional (#3677)

* fix(resource): make properties for async resolution optional

* fix(changelog): add changelog

* fix(resources): add regression test

* fix(resources): remove ts-ignore in tests

---------

Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>

* Changelog

* Bump patch versions

* fix(resources): change fs/promises import to be node 12 compatible (#3681)

* fix(resources): change fs/promises import to be node 12 compatible

* fix(changelog): add changelog entry.

---------

Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
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.

@opentelemetry/resources use fs/promise,but it's from node version 14.
3 participants