TypeError: Class constructor BasicTracerProvider cannot be invoked without 'new' #4234
Labels
bug
Something isn't working
priority:p1
Bugs which cause problems in end-user applications such as crashes, data inconsistencies, etc
What happened?
Steps to Reproduce
docker compose up
: this spins up grafana and tempo with collectors enabled. grafananpm install
npm run dev
Expected Result
No errors.
Actual Result
Additional Details
The tracing seems to work fine. I added a test button that triggers a client side trace which is correctly processed.
However, additional logging doesn't seem to be processed (when using
.addProcessor
but I think this is because it already errors out on the initial trace execution.Attempts to work-around / fix the issue
.0.44.0
of the OTLP http exporter currently has an issue with sending the tracesWebTracerProvider
from@opentelemetry/sdk-trace-web/build/esm
-or-/build/esnext
Extra info
I've tried a couple of versions of all the
@opentelemetry/
packages and sometimes it's a different class that cannot be instantiated but it boils down to the same error. Like hereOpenTelemetry Setup Code
Relevant log output
TypeError: Class constructor BasicTracerProvider cannot be invoked without 'new' at new WebTracerProvider (webpack-internal:///(ssr)/./node_modules/@opentelemetry/sdk-trace-web/build/esm/WebTracerProvider.js:51:28) at initTelemetry (webpack-internal:///(ssr)/./src/lib/otel/instrumentation.client.ts:44:22) at runNextTicks (node:internal/process/task_queues:60:5) at listOnTimeout (node:internal/timers:540:9) at process.processTimers (node:internal/timers:514:7)
The text was updated successfully, but these errors were encountered: