Type 'PeriodicExportingMetricReader' is not assignable to type 'MetricReader'. Types have separate declarations of a private property '_shutdown'. #5090
Labels
bug
Something isn't working
needs:author-response
waiting for author to respond
needs:reproducer
This bug/feature is in need of a minimal reproducer
pkg:sdk-metrics
pkg:sdk-node
triage
What happened?
Steps to Reproduce
I followed the tutorial at this page
https://opentelemetry.io/docs/languages/js/getting-started/nodejs/ in order to setup the metrics part.
I have this typescript error at metricReader
metricReader: new PeriodicExportingMetricReader({
exporter: new ConsoleMetricExporter(),
}),
Type 'PeriodicExportingMetricReader' is not assignable to type 'MetricReader'.
Types have separate declarations of a private property '_shutdown'.ts(2322)
types.d.ts(15, 5): The expected type comes from property 'metricReader' which is declared here on type 'Partial'
OpenTelemetry Setup Code
package.json
Relevant log output
No response
The text was updated successfully, but these errors were encountered: