Skip to content

Support resource detectors for service telemetry #14311

@iblancasa

Description

@iblancasa

Component(s)

service

Is your feature request related to a problem? Please describe.

The collector's self-observability telemetry doesn't use resource detectors, which means:

  1. Environment variables don't work: OTEL_RESOURCE_ATTRIBUTES and OTEL_SERVICE_NAME are ignored (see [telemetry] Add OTEL_RESOURCE_ATTRIBUTES to otlp-emitted metrics #10909).
  2. Cloud metadata requires manual config: when running on AWS/GCP/Azure, you have to manually configure all the cloud attributes (region, account, instance type, etc.) instead of auto-detecting them.
  3. Host information missing: basic stuff like host.id that could be auto-detected requires manual setup.

Describe the solution you'd like

Since this is something that is available as part of the go-sdk, I would like to see a detectors new field under .service.telemetry that allow enabling the detectores available in the go sdk.

Describe alternatives you've considered

No response

Additional context

No response

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions