Hey, trying to setup NestJS with OpenTel + Signoz ...
# support
a
Hey, trying to setup NestJS with OpenTel + Signoz but after following the sample repository, I encounter this error. Any clue what's going on there?
Copy code
credentials: grpc.credentials.createInsecure(),
                    ^
TypeError: Cannot read properties of undefined (reading 'credentials')
    at Object.<anonymous> (/home/xxx/src/tracer.ts:17:21)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/home/xxx/src/main.ts:13:1)
    at Module._compile (node:internal/modules/cjs/loader:1103:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1157:10)
a
a
On it, let me get back to you
Managed to get the app running but I don't see the app in Signoz UI after visiting any endpoints
a
Can you check if SigNoz otel collector is accessible from where you are running your applications: https://signoz.io/docs/install/troubleshooting/#using-troubleshooting-repository
@Aditya Tripathi
a
The troubleshooter was successful, it sent data properly but am I supposed to see something in the UI like test/sample data?
@Ashu
a
You should see your application in the
Services
tab if the instrumentation was setup correctly. Can you share your
tracing.ts
file @Aditya Tripathi?
a
I've finally got it working, following the NestJS guide @Ashu Thanks for your help
Is there anything I should keep in mind if it's being deployed on multiple pods over K8s?
a
Great @Aditya Tripathi! For deployment on k8s @Prashant Shahi would be able to share any pointers if any.
a
Okay thanks
p
@Aditya Tripathi it should work fine even across multiple replicas. Another alternative to ease out auto instrumentation would be using OpenTelemetry Operator. We will be releasing a guide on the same in few days.
a
Great, thanks for sharing, will look forward to it. @Prashant Shahi