-
Notifications
You must be signed in to change notification settings - Fork 813
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
@opentelemetry/instrumentation version 0.34.0 breaks @opentelemetry/instrumentation-fs #3448
Comments
fyi @mhassan1 |
I will take a look at this. I had added a test case especially for |
Here is what I have discovered:
I will put up a PR to restore the prior behavior. |
I think (1) is actually a bug/missing functionality in the fs instrumentation. it should register a hooks for "fs/promises" and ensure that it is able to handle that either or both hooks are called in arbitrary order. edit: created open-telemetry/opentelemetry-js-contrib#1313 |
What happened?
Steps to Reproduce
Expected Result
no crash
Actual Result
Additional Details
This is caused by #3161.
Splitting the module name on
/
here is not correct for built in modules likefs/promises
.As a result the instrumentation-fs hook for
fs
is called but gets the exports fromfs/promises
.OpenTelemetry Setup Code
package.json
Relevant log output
The text was updated successfully, but these errors were encountered: