Hi guys !
I want to understand how can I add information on my filelog receivers for deployment.environment or service.name. I read the OTel doc and I don't understand where do I have to put this on conf file.
My goa is to use the quick filter on the log panel for exemple where i can chose DEV/PROD or SERVICE1/SERVICE2
s
Steven Molen
04/17/2025, 2:58 PM
You need a comma delimited environment variable OTEL_RESOURCE_ATTRIBUTES=deployment.environment=MyEnvironmentName
Steven Molen
04/17/2025, 2:59 PM
you could do service.name in that environment variable, but since that shouldn't change per environment, I'd leave that to the app configuration.
Steven Molen
04/17/2025, 3:00 PM
Since the OTEL documentation changed past when signoz implemented their consumer, I do this: OTEL_RESOURCE_ATTRIBUTES=deployment.environment=MyEnvironmentName,deployment.environment.name=MyEnvironmentName
SigNoz is an open-source APM. It helps developers monitor their applications & troubleshoot problems, an open-source alternative to DataDog, NewRelic, etc.