Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[telemetry] Setting service.name on own telemetry has no effect for traces #10489

Closed
jpkrohling opened this issue Jul 1, 2024 · 0 comments · Fixed by #10490
Closed

[telemetry] Setting service.name on own telemetry has no effect for traces #10489

jpkrohling opened this issue Jul 1, 2024 · 0 comments · Fixed by #10490
Assignees
Labels
area:service bug Something isn't working collector-telemetry healthchecker and other telemetry collection issues

Comments

@jpkrohling
Copy link
Member

Describe the bug

Setting the service.name on the telemetry settings for the Collector has no effect, and traces generated by the Collector have no service name attacked (not even a default one). Internal metrics are handling this correctly.

Steps to reproduce

receivers:
  otlp:
    protocols:
      http:

exporters:
  debug:

service:
  pipelines:
    traces:
      receivers: [otlp]
      exporters: [debug]
    metrics:
      receivers: [otlp]
      exporters: [debug]
    logs:
      receivers: [otlp]
      exporters: [debug]
  telemetry:
    traces:
      processors:
        - batch:
            exporter:
              otlp:
                endpoint: http://127.0.0.1:5317
                protocol: grpc/protobuf
    resource:
      "service.name": "otelcol-own-telemetry"

What did you expect to see?
On a second Collector on port 5317, I would expect to see this on the traces received:

Resource SchemaURL: https://opentelemetry.io/schemas/1.25.0
Resource attributes:
     -> service.name: **Str(otelcol-own-telemetry)**

What did you see instead?

Resource SchemaURL: https://opentelemetry.io/schemas/1.25.0
Resource attributes:
     -> service.name: Str(unknown_service:otelcol-contrib)

What version did you use?
0.103.1

@jpkrohling jpkrohling added bug Something isn't working area:service collector-telemetry healthchecker and other telemetry collection issues labels Jul 1, 2024
@jpkrohling jpkrohling self-assigned this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:service bug Something isn't working collector-telemetry healthchecker and other telemetry collection issues
Projects
None yet
1 participant