#support

Issue with SigNoz and OpenTelemetry Instrumentation in NodeJS App

TLDR Anshul experienced errors while configuring SigNoz with OpenTelemetry for a NodeJS app. Srikanth suggested using different docs for lambda.

Powered by Struct AI
2
2mo
Solved
Join the chat
Sep 28, 2023 (2 months ago)
Anshul
Photo of md5-051f535431ff484f44f165e9a0b696a5
Anshul
01:17 PM
Hi
I am trying out signoz with opentelemetry for my nodejs application
My signoz is on cloud platform and while trying to start the appliction i am getting error

Unable to initialize instrumentation for lambda. Cannot identify lambda handler or task root. { taskRoot: undefined, handlerDef: undefined }
@opentelemetry/instrumentation-grpc Module @grpc/grpc-js has been loaded before @opentelemetry/instrumentation-grpc so it might not work, please initialize it before requiring @grpc/grpc-js
OpenTelemetry automatic instrumentation started successfully
no original function cpSync to wrap
no original function cp to wrap
no original function cp to wrap
Process is not running on K8S [Error: ENOENT: no such file or directory, access '/var/run/secrets/kubernetes.io/serviceaccount/token'] {
errno: -2,
code: 'ENOENT',
syscall: 'access',
path: '/var/run/secrets/kubernetes.io/serviceaccount/token'
}

{message":"Not Allowed","name":"OTLPExporterError","data":"<html>\r\n<head><title>405 Not Allowed</title></head>\r\n<body>\r\n<center><h1>405 Not Allowed</h1></center>\r\n<hr><center>nginx/1.25.2</center>\r\n</body>\r\n</html>\r\n","code":"405"}

and no logs are found on the signoz UI itself
Sep 29, 2023 (2 months ago)
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
01:48 AM
You can’t use the same docs for lambda. Please see https://github.com/open-telemetry/opentelemetry-lambda