how to name this unknown service - i deploy via docker self hosted
s
how to name this unknown service - i deploy via docker self hosted
v
you need to set the
SERVICE_NAME
via resource attributes.
s
OTEL_EXPORTER=otlp OTEL_SERVICE_NAME=test-staging OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 OTEL_RESOURCE_ATTRIBUTES=application=test-staging
like this?
i have run app via puma so OTEL_EXPORTER=otlp OTEL_SERVICE_NAME=test-staging OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318 OTEL_RESOURCE_ATTRIBUTES=application=test-staging sudo systemctl restart puma.service
i run this but still same issue
also i add this in bashrc also restart otelcol-contrib.service
i dont know what to do next
v
I see, are you using
opentelemtry/ruby
SDK ? And are you able to see other resource attributes being applied correctly ? Also can you try using ConsoleExporter and see if the data is being sent correctly ?