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

Raj Singh Yadav

12/02/2022, 11:56 AM
how to configure these variables in nodejs application -
Copy code
application.owner,project.name,application.location,application.department,company.name
I have tried the below way but only three variables (service.name, service.namespace,deployment.environment) are getting configured
Copy code
resource: new Resource({
      [SemanticResourceAttributes.SERVICE_NAME]: 'appServiceName',
      [SemanticResourceAttributes.SERVICE_NAMESPACE]: 'appServiceNameSpace',
      [SemanticResourceAttributes.COMPANY_NAME]: 'myCompany',
      [SemanticResourceAttributes.DEPLOYMENT_ENVIRONMENT]: 'prod',
      [SemanticResourceAttributes.APPLICATION_LOCATION]: 'mumbai',
      [SemanticResourceAttributes.PROJECT_NAME]: 'newProject',
      [SemanticResourceAttributes.APPLICATION_DEPARTMENT]: 'dev',
      [SemanticResourceAttributes.APPLICATION_OWNER]: 'owner'
      })
s

Srikanth Chekuri

12/02/2022, 12:13 PM
Because the official semconv doesn’t include them. You can simple use string: string mapping for them.
Copy code
{
...
"application.owner": ...,
...
}
r

Raj Singh Yadav

12/02/2022, 1:23 PM
Hi , i tried this way but only first three were showing in service dashboard
Copy code
resource: new Resource({

	"service.name": "nodejs1",
	"service.namespace": "gs1",
	"deployment.environment": "prod1",
	   "application.owner": "owner",
	   "project.name": "p1",
	   "application.location": "l1",
	   "application.department": 'd3',
	   "company.name": "c4"
      })
s

Srikanth Chekuri

12/02/2022, 2:28 PM
Hmm, that’s unexpected. Can you create an issue here https://github.com/SigNoz/signoz and share a reproducible example?
2 Views