Troubleshooting Node App Instrumentation with Signoz
TLDR Romario encountered a "TypeError" while following a guide to instrument a node app, discovered that sdk.start()
is not a promise, and resolved the issue using the init
option.

Apr 12, 2023 (5 months ago)
Romario
07:31 PM> [email protected] start
> TS_NODE_BASEURL=./build node -r tsconfig-paths/register build/src/tracing.js build/src/main.js
/Users/rlopez/repos/gitstart/gateway/build/src/tracing.js:35
.then(() => console.log("Tracing initialized"))
^
TypeError: Cannot read properties of undefined (reading 'then')
at Object.<anonymous> (/Users/rlopez/repos/gitstart/gateway/build/src/tracing.js:35:3)
at Module._compile (node:internal/modules/cjs/loader:1097:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1151:10)
at Module.load (node:internal/modules/cjs/loader:975:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47
Node.js v18.4.0
Romario
07:31 PMRomario
07:34 PMsdk.start()
is undefinedRomario
07:36 PMstart()
type changed, is not a promise anymore 🤔Romario
07:41 PMPalash Gupta
07:50 PMRomario
07:56 PMinit
option, is working
SigNoz Community
Indexed 825 threads (61% resolved)
Similar Threads
Issue with sdk.start() in Signoz and Next.js
wafot encountered an error with sdk.start(). Romario clarified that it no longer returns a promise. Ankit requested documentation update.

Error Installing SigNoz on NodeJS App on Graviton Server
abhinav faced errors installing SigNoz on a NodeJS app. vishal-signoz suggested following a workaround on an opentelemetry issue, which resolved the problem.
Issues with Signoz 10.2: Grouping, Missing Traces, and Capturing Requests
Anil reported issues with Signoz 10.2, including grouping, missing traces, and capturing requests. Srikanth suggested upgrading to a newer version. The issue was resolved after upgrading the node version to 18 and additional clarifications were provided.