instrumentation of internal files in scoped packages doesn't work on windows #4436
Labels
bug
Something isn't working
pkg:instrumentation
priority:p2
Bugs and spec inconsistencies which cause telemetry to be incomplete or incorrect
What happened?
Steps to Reproduce
Use an instrumentation which patched internal files in an scoped package. I used
@opentelemetry/instrumentation-aws-sdk
together with AWS SDK v3. This tries to patch e.g.@smithy/middleware-stack/dist-cjs/MiddlewareStack.js
, see here.Expected Result
Instrumentation works independent of the OS used.
Actual Result
Instrumentation fails on windows.
Additional Details
I think problem is somewhere here because
name
uses mixed slashes@smithy/middleware-stack\\dist-cjs\\MiddlewareStack.js
but correct would be backslashes only.OpenTelemetry Setup Code
package.json
Relevant log output
No response
I think this is caused by/related to #3161.
The text was updated successfully, but these errors were encountered: