OpenTelemetry Support [Experimental]

I set this up, and it seems worked seamlessly when pointing it at Honeycomb. However, when pointing it at RW studio, I see the following logs over and over:

{"level":50,"time":1708664248315,"pid":90954,"hostname":"pemulis.local","msg":"Failed to ingest span"}
{"level":50,"time":1708664248315,"pid":90954,"hostname":"pemulis.local","err":{"type":"TypeError","message":"Cannot convert undefined to a BigInt","stack":"TypeError: Cannot convert undefined to a BigInt\n    at BigInt (<anonymous>)\n    at convertLongToBigInt (/Users/aoife/Code/app/node_modules/@redwoodjs/studio/api/dist/functions/otel-trace/otel-trace.js:52:36)\n    at createSpan (/Users/aoife/Code/app/node_modules/@redwoodjs/studio/api/dist/functions/otel-trace/otel-trace.js:246:22)\n    at async __rw_handler (/Users/aoife/Code/app/node_modules/@redwoodjs/studio/api/dist/functions/otel-trace/otel-trace.js:281:11)\n    at async requestHandler (/Users/aoife/Code/app/node_modules/@redwoodjs/api-server/dist/requestHandlers/awsLambdaFastify.js:92:30)"},"msg":"Cannot convert undefined to a BigInt"}

Im using RW 7.0.2 - any ideas what’s going on? Also, is there any way to just turn on OTL in production?

2 Likes