Open abaybektursun opened 3 weeks ago
Have you tested the solution in #520 ? It uses @vercel/otel
instead
My guess is that one of the import is failing for some reason. Does it work with the standalone output ?
And BTW this cannot properly work on lambda, you're not awaiting things properly here, the last exported trace of a request will likely never get sent.
The solution in my post did not work I spent about a week trying different methods and conico was helpful but everything I tried resulted in the same failure. We have switched to railway for deployment until opennext supports Otel
The solution in the other post did work for me with @vercel/otel
.
If it still doesn't work, you'll need to provide a reproduction
Running into the same issue. I won't be able to immediately provide a reproduction. Same project is currently deployed on Vercel, so I would expect for things to just work out of the box.
In the meantime, I'm going to drop my build error here in case it sparks some ideas:
11:14:01.939 | ✘ [ERROR] Could not resolve "../platform"
-- | --
11:14:01.939 |
11:14:01.939 | .next/standalone/node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/src/internal/global-utils.js:19:27:
11:14:01.939 | 19 │ const platform_1 = require("../platform");
Very likely related to this https://github.com/vercel/next.js/issues/68740
I am trying to get OpenTelemtry working with my app (For debugging LLMs). It works when I run it locally, however it stops working after deploying with SST v3 ("sst": "3.2.12") I have this in my
next.config.js
instrumentation.ts
instrumentation.node.js
This entire file seems to be ignored since there are no logs from
instrumentation.node.js
in CloudWatch or SST.