You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to send pino logs to grafana loki from a NextJS server side context, with pino-opentelemetry-transport I have this error:
Error [ERR_INTERNAL_ASSERTION]: Unknown worker message type message
This is caused by either a bug in Node.js or incorrect usage of Node.js internals.
Please open an issue with this stack trace at https://github.com/nodejs/node/issues
at Function.fail (node:internal/assert:20:9)
at [kOnMessage] (node:internal/worker:354:12)
at MessagePort.<anonymous> (node:internal/worker:232:57)
at _ZoneDelegate.invokeTask (webpack-internal:///(ssr)/../../node_modules/.pnpm/[email protected]/node_modules/zone.js/fesm2015/zone.js:406:31)
at Zone.runTask (webpack-internal:///(ssr)/../../node_modules/.pnpm/[email protected]/node_modules/zone.js/fesm2015/zone.js:178:47)
at ZoneTask.invokeTask [as invoke] (webpack-internal:///(ssr)/../../node_modules/.pnpm/[email protected]/node_modules/zone.js/fesm2015/zone.js:487:34)
at invokeTask (webpack-internal:///(ssr)/../../node_modules/.pnpm/[email protected]/node_modules/zone.js/fesm2015/zone.js:1661:18)
at globalCallback (webpack-internal:///(ssr)/../../node_modules/.pnpm/[email protected]/node_modules/zone.js/fesm2015/zone.js:1692:29)
at MessagePort.globalZoneAwareCallback (webpack-internal:///(ssr)/../../node_modules/.pnpm/[email protected]/node_modules/zone.js/fesm2015/zone.js:1725:16)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:820:20)
at MessagePort.<anonymous> (node:internal/per_context/messageport:23:28)
at MessagePort.callbackTrampoline (node:internal/async_hooks:130:17) {
code: 'ERR_INTERNAL_ASSERTION'
}
About the code, this is my instrumentation config:
Hello @bozzelliandrea, you should not create any logRecordProcessors when instantiating the SDK. pino-opentelemetry-transport will do that for you.
Try removing that first. If it does not work can you please create a simple way to reproduce this? I am not sure I'll be able to guess what your Next.js application looks like. If I can make it work I'd like to create an example of how to use the transport with Next.js.
Hi, I'm trying to send pino logs to grafana loki from a NextJS server side context, with pino-opentelemetry-transport I have this error:
About the code, this is my instrumentation config:
and this is an example POST route where pino is used:
env
node -v: 20.17.0
next: 14
pino: 9.4.0
pino-opentelemetry-transport: 1.0.1
Am I missing something inside the configuration?
The text was updated successfully, but these errors were encountered: