#support

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.

Powered by Struct AI
Mar 15, 2023 (9 months ago)
abhinav
Photo of md5-e02e105da483c3727bd042f935991ec6
abhinav
09:54 AM
Hey guys, recently i was installing signoz on one of my nodeJS app and got this error-
(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
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
11:55 AM
vishal-signoz
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
12:19 PM
How did you instrument? Did you follow any tutorial?
abhinav
Photo of md5-e02e105da483c3727bd042f935991ec6
abhinav
12:22 PM
Yes I did
12:23
abhinav
12:23 PM
Node JS
12:23
abhinav
12:23 PM
app
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
12:25 PM
Did you use all in one instrumentation method?
abhinav
Photo of md5-e02e105da483c3727bd042f935991ec6
abhinav
12:26 PM
yeah i installed all 3 of them
12:26
abhinav
12:26 PM
step by step
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
12:34 PM
This issue on opentelemetry seems related to your issue: https://github.com/open-telemetry/opentelemetry-js/issues/3580
12:35
vishal-signoz
12:35 PM
Can you follow this and report if it worked?
abhinav
Photo of md5-e02e105da483c3727bd042f935991ec6
abhinav
12:36 PM
Checking

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community