my service are not visible after deploy OTEL_EXPORTER=otlp OTEL_SERVICE_NAME=xyz-staging OTEL_EXPORT...
s
my service are not visible after deploy OTEL_EXPORTER=otlp OTEL_SERVICE_NAME=xyz-staging OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 OTEL_RESOURCE_ATTRIBUTES=application=xyz-staging -- i am using rails app and also i add a .env file with these var but after deploy as my .env is gone it also remove service in signoz , any other way to keep the service running when deploy via capistrano ? without using .env or .env gem
c
Can you try setting your Environment variables in your capistrano config file by doing something like
Copy code
set :default_env, {
  'OTEL_EXPORTER' => 'otlp',
  'OTEL_SERVICE_NAME' => 'xyz-staging',
  'OTEL_EXPORTER_OTLP_ENDPOINT' => '<http://localhost:4318>',
  'OTEL_RESOURCE_ATTRIBUTES' => 'application=xyz-staging'
}