Issue with sdk.start() in Signoz and Next.js
TLDR wafot encountered an error with sdk.start(). Romario clarified that it no longer returns a promise. Ankit requested documentation update.

Apr 19, 2023 (5 months ago)
wafot
08:53 AMFile: tracing.js
sdk.start()
.then(() => console.log('Tracing initialized'))
^
TypeError: Cannot read properties of undefined (reading 'then')
at Object.<anonymous> (/home/dell/Desktop/intelops/open-telemetry-frontend/next-app-for-test/tracing.js:32:3)
at Module._compile (node:internal/modules/cjs/loader:1254:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1308:10)
at Module.load (node:internal/modules/cjs/loader:1117:32)
at Module._load (node:internal/modules/cjs/loader:958:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.14.2
I've tried debbuging this on console, which resulted that, sdk.start() was undefined
Please let me know how to fix this
Apr 21, 2023 (5 months ago)
Romario
08:29 PMRomario
08:30 PMsdk.start()
Apr 22, 2023 (5 months ago)
Ankit
06:18 AMvishal-signoz and Ashu can you check if we need to update the docs?

Apr 23, 2023 (5 months ago)
Ashu
09:27 AMSigNoz Community
Indexed 825 threads (61% resolved)
Similar Threads
Troubleshooting Node App Instrumentation with Signoz
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.

Issue with Signoz Integration in Next JS Project
Kewal is having an issue with Signoz Integration in a Next JS Project, where sdk.start() function is undefined. vishal-signoz asks to check if the same version of opentelemetry library is being used.
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.