# OpenTelemetry Tracing - resource attribute service.name = unknown\_service:traefik

**URL:** <https://community.traefik.io/t/opentelemetry-tracing-resource-attribute-service-name-unknown-service-traefik/18952>\
**Category:** Traefik v3 (latest)\
**Tags:** tracing\
**Created:** [June 13, 2023, 5:20am UTC](https://community.traefik.io/t/opentelemetry-tracing-resource-attribute-service-name-unknown-service-traefik/18952 "2023-06-13T05:20:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![proffalken](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/proffalken/32/7241_2.png) [@proffalken](https://community.traefik.io/u/proffalken)\
**Post date:** [June 13, 2023, 5:20am UTC](https://community.traefik.io/t/opentelemetry-tracing-resource-attribute-service-name-unknown-service-traefik/18952/1 "2023-06-13T05:20:51Z")

</div>

Traefik Version: 3.0.0-beta2  
Install Method: Docker via [Docker](https://hub.docker.com/_/traefik)

[OpenTelemetry Tracing - resource attribute `service.name = unknown_service:traefik` · Issue #9617 · traefik/traefik · GitHub](https://github.com/traefik/traefik/issues/9617) claims that [Fix OpenTelemetry service name by tomMoulard · Pull Request #9619 · traefik/traefik · GitHub](https://github.com/traefik/traefik/pull/9619) should correct the issues with OpenTelemetry showing `unknown_service:traefik` as the OTEL service name, however this does not appear to be the case.

My docker-compose is as follows:

```auto
  traefik:
    image: "traefik:v3.0.0-beta2"
    container_name: "traefik"
    command:
      - "--api.insecure=true"
      - "--providers.docker=true"
      - "--providers.docker.exposedbydefault=false"
      - "--providers.docker.endpoint=unix:///var/run/balena-engine.sock"
      - "--entrypoints.web.address=:80"
      - "--entrypoints.ldap.address=:389"
      - "--tracing.opentelemetry=true"
      - "--tracing.opentelemetry.address=bindplanecollector:4318"
      - "--tracing.opentelemetry.insecure=true"
      - "--metrics.opentelemetry=true"
      - "--metrics.opentelemetry.address=bindplanecollector:4318"
      - "--metrics.opentelemetry.insecure=true"
      - "--metrics.openTelemetry.addRoutersLabels=true"
      - "--log.format=json"
      - "--accesslog=true"
      - "--accesslog.format=json"
      - "--accesslog.filePath=/data/traefik_logs/access.log"
      - "--log.filePath=/data/traefik_logs/traefik.log"
    ports:
      - "80:80"
      - "8080:8080"
    labels:
      - "io.balena.features.balena-socket=true"
      - "io.balena.features.supervisor-api=true"
    volumes:
      - "traefik_logs:/data/traefik_logs"

```

Metrics and traces are being sent to the collector correctly, but the service is still `unknown_service:traefik`. Ideally, this would be `traefik:<router_name>`, but just `traefik` (as detailed in the PR) would suffice.

Have I missed an argument somewhere?

---

<div class="post-metadata">

**Author:** ![bluepuma77](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bluepuma77](https://community.traefik.io/u/bluepuma77)\
**Post date:** [June 13, 2023, 4:30pm UTC](https://community.traefik.io/t/opentelemetry-tracing-resource-attribute-service-name-unknown-service-traefik/18952/2 "2023-06-13T16:30:32Z")

</div>

If you check the [release page](https://github.com/traefik/traefik/releases), you will find that "3.0.0-beta2" is from "Dec 7, 2022", so before the fix was created.

It seems the focus of the Traefik team has been more on a stable v2.10 and not on refreshing v3 beta.

---

<div class="post-metadata">

**Author:** ![proffalken](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/proffalken/32/7241_2.png) [@proffalken](https://community.traefik.io/u/proffalken)\
**Post date:** [June 13, 2023, 5:07pm UTC](https://community.traefik.io/t/opentelemetry-tracing-resource-attribute-service-name-unknown-service-traefik/18952/3 "2023-06-13T17:07:56Z")

</div>

Good spot, I'd completely missed that.

I'll run up my own container for now and see how that goes 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [June 16, 2023, 5:08pm UTC](https://community.traefik.io/t/opentelemetry-tracing-resource-attribute-service-name-unknown-service-traefik/18952/4 "2023-06-16T17:08:03Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
