Error Installing SigNoz on NodeJS App on Graviton Server
TLDR abhinav faced errors installing SigNoz on a NodeJS app. vishal-signoz suggested following a workaround on an opentelemetry issue, which resolved the problem.
Mar 15, 2023 (9 months ago)
abhinav
09:54 AM(Note- The app is running on a graviton server) Any help?
node_modules/@opentelemetry/instrumentation-redis/build/src/types.d.ts:8:26 - error TS2694: Namespace '"/home/ec2-user/sapphire-pm2/source/node_modules/redis/dist/index"' has no exported member 'Callback'.
8 callback: redisTypes.Callback<unknown>;
~~~~~~~~
node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/browser/util.d.ts:10:84 - error TS2304: Cannot find name 'BlobPropertyBag'.
10 export declare function sendWithBeacon(body: string, url: string, blobPropertyBag: BlobPropertyBag, onSuccess: () => void, onError: (error: OTLPExporterError) => void): void;
~~~~~~~~~~~~~~~
src/core/tracing.js:27:6 - error TS2339: Property 'then' does not exist on type 'void'.
27 .then(() => console.log('Tracing initialized'))
~~~~
Found 3 errors in 3 files.
Errors Files
1 node_modules/@opentelemetry/instrumentation-redis/build/src/types.d.ts:8
1 node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/browser/util.d.ts:10
1 src/core/tracing.js:27
Prashant
11:55 AMvishal-signoz
12:19 PMabhinav
12:22 PMabhinav
12:23 PMabhinav
12:23 PMvishal-signoz
12:25 PMabhinav
12:26 PMabhinav
12:26 PMvishal-signoz
12:34 PMvishal-signoz
12:35 PMabhinav
12:36 PMSigNoz Community
Indexed 1023 threads (61% resolved)
Similar Threads
Issue with SigNoz and OpenTelemetry Instrumentation in NodeJS App
Anshul experienced errors while configuring SigNoz with OpenTelemetry for a NodeJS app. Srikanth suggested using different docs for lambda.
Issues and Changes in OpentelemetryJs
Harald expressed frustration about changes and documentation issues in OpentelemetryJs. Srikanth shared the upgrade guidelines and suggested contributing to improve the project. Harald agreed to create a new PR for SigNoz examples.
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.
NodeJS App Integration with OpenTelemetry Issue
Vinay was having trouble integrating OpenTelemetry into a NodeJS app. Srikanth advised updating to the latest versions of the relevant npm packages, which resolved the issue.
Troubleshooting SigNoz Auto-Instrumentation Configuration
igor is having trouble configuring auto-instrumentation for Java applications using SigNoz, with traces not appearing in the SigNoz UI. Prashant advises to check logs of the otel sidecar, use service name for endpoint, verify supported libraries, and test with telemetrygen. However, the issue still persists.