Divyanshu Negi
03/15/2023, 6:23 AMDivyanshu Negi
03/15/2023, 6:25 AMDivyanshu Negi
03/15/2023, 6:26 AMAnkit Nayan
Database calls
are generated using traces from client libs used to connect to DBAnkit Nayan
Ankit Nayan
Ankit Nayan
Divyanshu Negi
03/15/2023, 6:32 AMDivyanshu Negi
03/15/2023, 7:30 AMthis.sdk = new opentelemetry.NodeSDK({
traceExporter,
instrumentations: [
getNodeAutoInstrumentations(),
new MongoDBInstrumentation({
enhancedDatabaseReporting: true,
}),
],
resource: new Resource({
[SemanticResourceAttributes.SERVICE_NAME]: `${config.get<string>(
'service.name',
)}:${process.env.NODE_ENV}`,
}),
});
here is the updated code where I just added
new MongoDBInstrumentation({
enhancedDatabaseReporting: true,
})
to instrument mongo data, but still not getting anything on the Signoz DashboardAnkit Nayan
Divyanshu Negi
03/15/2023, 10:05 AMDivyanshu Negi
03/15/2023, 10:06 AMreturn this.messageRepo.withTransaction(async (session) => {
const conversation = await this.conversationRepo.findByIdOrFail(
conversationId,
{ session },
);
in the code we are calling this on the API call, which is a mongoose code to query dbAnkit Nayan
Vishal Sharma
03/15/2023, 12:02 PMopentelemetry/instrumentation-mongoose
separately if you are using opentelemetry/auto-instrumentations-node
Divyanshu Negi
03/15/2023, 12:03 PMVishal Sharma
03/15/2023, 12:03 PMDivyanshu Negi
03/15/2023, 12:03 PM"mongoose": "^5.12.7",
Vishal Sharma
03/15/2023, 12:05 PMmongodb
version?Vishal Sharma
03/15/2023, 12:06 PMopentelemetry/auto-instrumentations-node
version are you using?Divyanshu Negi
03/15/2023, 12:07 PMmongoDB
I need to check, access issue with the instance where its runningDivyanshu Negi
03/15/2023, 12:07 PM"@opentelemetry/api": "^1.4.0",
"@opentelemetry/auto-instrumentations-node": "^0.36.3",
"@opentelemetry/exporter-trace-otlp-http": "^0.35.1",
"@opentelemetry/resources": "^1.9.1",
"@opentelemetry/sdk-node": "^0.35.1",
"@opentelemetry/semantic-conventions": "^1.9.1"