mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Running the prior code in wrangler (but _not_ `npm run dev`) was generating errors during otel initialization. I was ultimately unable to figure out why, or how to fix them: ``` (warn) Initializing OpenTelemetry (error) Error initializing OpenTelemetry TypeError: Class constructor OTLPExporterBase2 cannot be invoked without 'new' ``` In the end, it was easier to just boil the ocean a little: With claude's help, write a custom otlp exporter and use that. Also use BasicTracerProvider instead of WebTracerProvider. This version is enough to generate spans from within local wrangler. |
||
---|---|---|
.. | ||
components | ||
lib | ||
routes | ||
styles | ||
types | ||
utils | ||
entry.client.tsx | ||
entry.server.tsx | ||
root.tsx | ||
vite-env.d.ts |