This message was deleted.
s
This message was deleted.
a
any update on this ? as i tried so many ways but couldn't find the resolution. i followed the tutorial as well
v
What issues are you facing? Do you see any errors on node js app?
Also which tutorial did you follow?
a
no issue from node js app. i followed this url https://signoz.io/blog/nodejs-opensource-application-monitoring/
i am using node v14.21.2 and using signoz v0.10.2
also i am starting the node js app using below command
OTEL_RESOURCE_ATTRIBUTES='service.name=node_app' OTEL_EXPORTER_OTLP_ENDPOINT='http://localhost:4318' node -r ./tracing.js bin/ww
v
Can you try integrating console span exporter and check if spans are printed on terminal?
a
span are printing
v
then it’s issue with connection to otel collector
a
{"stack":"OTLPExporterError: Bad Request\n at IncomingMessage.res.on (/home/anil/workflow-camunda/smart-search/node_modules/@opentelemetry/otlp-exporter-base/build/src/platform/node/util.js7635)\n at manager.with (/home/anil/workflow-camunda/smart-search/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js5055)\n at AsyncHooksContextManager.with (/home/anil/workflow-camunda/smart-search/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncHooksContextManager.js4223)\n at IncomingMessage.contextWrapper (/home/anil/workflow-camunda/smart-search/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js5032)\n at IncomingMessage.emit (events.js20315)\n at endReadableNT (_stream_readable.js114512)\n at process._tickCallback (internal/process/next_tick.js6319)","message":"Bad Request","name":"OTLPExporterError","data":"{\"code\":3,\"message\":\"unknown field \\\"scopeSpans\\\" in v1.ResourceSpans\"}","code":"400"}
this error i am getting
could you please help me to understand this issue
what might be the solution for this
v
wait checking
can you please share your package.json?
a
{ "name": "smart-search", "version": "0.0.0", "description": "Smart search using elastic search", "main": "index.js", "scripts": { "start": "node -r ./tracing.js index.js" }, "repository": { "type": "git", "url": "git+ssh://git@gitlab.com:company-framework/test.git" }, "keywords": [ "nodejs", "express", "elastic search", "mongodb" ], "author": "tester", "license": "ISC", "bugs": { "url": "https://gitlab.com/company-framework/test/issues" }, "homepage": "https://gitlab.com/company-framework/test#readme", "dependencies": { "@opentelemetry/api": "^1.4.0", "@opentelemetry/auto-instrumentations-node": "^0.36.0", "@opentelemetry/exporter-trace-otlp-http": "^0.35.0", "@opentelemetry/sdk-node": "^0.35.0", "apollo-server-express": "2.9.9", "body-parser": "1.19.0", "bookshelf-jsdoc-theme": "1.0.0", "compression": "1.7.3", "dot-object": "2.1.2", "elasticsearch": "15.4.1", "events": "3.1.0", "express": "4.16.4", "express-device": "0.4.2", "express-mongo-sanitize": "^2.0.0", "express-request-id": "1.4.1", "graphql": "^15.5.0", "helmet": "3.15.0", "jsonwebtoken": "^8.5.1", "minami": "1.2.3", "moment": "2.24.0", "mongoose": "5.4.11", "mongoose-auto-increment": "5.0.1", "morgan": "1.9.1", "namis": "1.0.3", "node-fetch": "2.6.0", "nodejs-tail": "1.1.0", "object-hash": "1.3.1", "pluralize": "7.0.0", "request": "2.88.0", "request-promise": "4.2.2", "role-acl": "4.4.0", "socket.io": "2.3.0", "swagger-jsdoc": "3.2.6", "swagger-ui-express": "4.0.2", "underscore": "1.9.1", "winston": "3.2.1", "xss-clean": "^0.1.1" }, "devDependencies": { "async": "2.6.1", "bytenode": "1.1.1", "chai": "4.2.0", "docdash": "1.0.2", "handlebars": "^4.5.0", "istanbul": "1.0.0-alpha.2", "jasmine": "3.3.1", "jasmine-reporters": "2.3.2", "javascript-obfuscator": "1.1.0", "jsdoc": "3.5.5", "nodemon": "2.0.2", "sanitation": "1.0.10", "supertest": "3.3.0", "terser-webpack-plugin": "2.0.1", "webpack": "4.39.3", "webpack-cli": "3.3.8", "webpack-node-externals": "1.7.2" } }
Hi @Vishal Sharma, issue is with the opentelemetry package versions. i am using signoz v0.10.2, if i use opentelemetry package version to 0.28.0, then i am able to see the traces. could you please provide us the info regarding compatible versions of signoz and opentelemetry package version ?
v
Is there any reason why you didn’t update to latest version of signoz?
a
signoz 10.2 is the latest version at that time of our first usage in our organization. we integrated most of our applications. now we are trying to integrate pending applications into the existing signoz version.
v
Are you using docker or k8s?
a
if i need to upgrade means then we need work on each application which we integrated already
k8s
in organization level
docker in my local machine
v
@Anil Kumar Bandrapalli SigNoz upgrade won’t affect all your applications.
a
7-8 applications we already integrated. I will check locally and then try to upgrade it. is there any way to see compatible opentelemetry versions with signoz ?
v
This is might not be due to incompatibility with signoz, in some versions of otel exporter there are bugs but it’s possible that there is some bug in 0.36.0
a
ok