Hi Team, I have a doubt regarding the service name...
# support
r
Hi Team, I have a doubt regarding the service name I was trying to monitor a node application with opentelemetry and signoz and it was doing fine. The only problem was it's not getting the service name resource attribute and the service is being shown as "unknown_service:node" in the dashboard. I have tried to provide the service name using semantic attributes in opentelemetry node sdk. Thanks for you time.
p
hey @Ritek Saxena have you seen this in our nodejs docs - https://signoz.io/docs/instrumentation/nodejs/ Seems related to the issue you are facing
r
Thanks for your reply, Yes I have seen that and did according to that only. I have imported semanticResourceAttributes from opentelemetry but didn't work out. Furthermore there was a blog on the official signoz page about how to provide service name attribute while running the command but unfortunately that didn't work out as well.
p
I see. can you share your tracing.js file?
r
Here's a snapshot of the file, I can share the js file as well if you say!
Well I have found the solution... it's working now 😃. Thanks for your time and efforts.
p
Can you share what was the solution? @Ritek Saxena Would be helpful for folks who check this thread in the future
r
Sure thing.. So what I did wrong was to provide resources in the node sdk. I corrected by giving those resources to the provider.resource variable.
p
👍