zilla icon indicating copy to clipboard operation
zilla copied to clipboard

Telemetry attribute service.name doesn't get sent correctly

Open vordimous opened this issue 9 months ago • 1 comments

Describe the bug Setting the service.namespace and service.name attributes don't show up in with those names in the exporters.

To Reproduce Steps to reproduce the behavior:

  1. Run the aklivity/opentelemetry-demo using the docker compose deployment.
  2. wait for everything to start.
  3. Fetch the orders from the Kafka topic: curl http://localhost:7114/orders
  4. See Zilla metrics in Grafana Explorer
  5. the configured service.name shows up as job
  6. when both service.namespace and service.name are configured they are joined with a /

Expected behavior Configuring the service.name should show up as service_name on all of the metrics and logs.

Additional context

  • https://github.com/aklivity/opentelemetry-demo

vordimous avatar May 07 '24 15:05 vordimous

I was able to do some more tweaks to get the metrics to have a consistent job attribute by configuring just the telemetry attributes service.name without a service.namespace. I could then clone the demo dashboard and tell it to use the job label instead of the service_name label when filtering metrics and logs to show zilla logs and metrics along with the other services.

This issue still needs to be addressed based on how other OTEL SDKs export a service name and determine why we can use service.name and service.namespace to manipulate the job label and if that is the intended functionality.

vordimous avatar May 14 '24 15:05 vordimous