-
Notifications
You must be signed in to change notification settings - Fork 825
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
Type 'PeriodicExportingMetricReader' is not assignable to type 'MetricReader'. Types have separate declarations of a private property '_shutdown'. #3944
Comments
Hi, thanks for reaching out - I tried to reproduce this but it looks like everything compiles fine when I try it. (see https://github.com/pichlermarc/repro-3944) Would you mind adding a reproducer similar to (or based on) the one I linked above so we can troubleshoot the problem? 🤔 |
Hey @pichlermarc, I face the same issue but for different versions of packages, please take a look at PR with bug reproduction: |
@Mifrill ah, thanks, this does reproduce it! this seems to be because Please let me know if that fixes the issue 🙂 |
@pichlermarc yup, the bump |
Glad to hear 🙂 @Eji4h would you mind checking if the proposed solution also works for you? |
Thanks |
Hey @pichlermarc based on your comment and documentation, the However, it seems like something went wrong with documenation, because this bug is reproducible on those versions, see: pichlermarc/repro-3944#2 Though, it can be fixed by the next version sdk-node 0.44, see: Mifrill/repro-3944#1. Perhaps it is worth docs fix. |
I have
and i have the exact same issue
anyone else is in the same boat? |
I'm also hitting this still, with the following versions:
|
This would fix that
But first remove package-lock.json and node_modules before running npm install. |
I'm running into this issue with version:
|
Same here! "@opentelemetry/sdk-metrics": "^1.24.0", |
Resolves the issue described in open-telemetry/opentelemetry-js#3944
I can confirm, the issue exists with the latest versions as well:
For anyone looking for a workaround, these version ranges work:
|
What happened?
Steps to Reproduce
By following the instructions in the [Exporters] article (https://opentelemetry.io/docs/instrumentation/js/exporters/), my team set up PeriodicExportingMetricReader to metricReader of NodeSDK.
Expected Result
No error message should be received.
Actual Result
from TypeScript when we set PeriodicExportingMetricReader to metricReader of NodeSDK.
Additional Details
Setting traceExporter is acceptable. We attempt to install dependencies on any version, but it is not working.
OpenTelemetry Setup Code
package.json
Relevant log output
No response
The text was updated successfully, but these errors were encountered: