https://signoz.io logo
#support
Title
# support
r

Ritek Saxena

06/04/2022, 5:03 AM
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

Pranay

06/04/2022, 6:10 AM
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

Ritek Saxena

06/04/2022, 6:24 AM
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

Pranay

06/04/2022, 7:13 AM
I see. can you share your tracing.js file?
r

Ritek Saxena

06/04/2022, 9:42 AM
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

Pranay

06/04/2022, 11:21 AM
Can you share what was the solution? @Ritek Saxena Would be helpful for folks who check this thread in the future
r

Ritek Saxena

06/04/2022, 12:28 PM
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

Pranay

06/04/2022, 1:07 PM
👍
11 Views