https://signoz.io logo
Title
a

Aditya Tripathi

08/12/2022, 8:08 AM
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?
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

Ashu

08/12/2022, 8:10 AM
a

Aditya Tripathi

08/12/2022, 8:10 AM
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

Ashu

08/12/2022, 12:03 PM
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

Aditya Tripathi

08/17/2022, 8:06 AM
The troubleshooter was successful, it sent data properly but am I supposed to see something in the UI like test/sample data?
@Ashu
a

Ashu

08/17/2022, 1:44 PM
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

Aditya Tripathi

08/18/2022, 7:01 AM
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

Ashu

08/18/2022, 7:03 AM
Great @Aditya Tripathi! For deployment on k8s @Prashant Shahi would be able to share any pointers if any.
a

Aditya Tripathi

08/18/2022, 7:04 AM
Okay thanks
p

Prashant Shahi

08/18/2022, 7:09 AM
@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

Aditya Tripathi

08/18/2022, 7:10 AM
Great, thanks for sharing, will look forward to it. @Prashant Shahi