zilla
zilla copied to clipboard
Telemetry attribute service.name doesn't get sent correctly
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:
- Run the aklivity/opentelemetry-demo using the docker compose deployment.
- wait for everything to start.
- Fetch the orders from the Kafka topic:
curl http://localhost:7114/orders
- See Zilla metrics in Grafana Explorer
- the configured
service.name
shows up asjob
- when both
service.namespace
andservice.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
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.