Skip to content

Telemetry metric metadata uses deprecated field not supported by mdatagen #45327

@Syedowais312

Description

@Syedowais312

Component(s)

No response

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

After opentelemetry-collector PR , mdatagen now open-telemetry/opentelemetry-collector#14408 enforces the
metadata schema and no longer allows deprecated under telemetry.metrics.

Several contrib components (e.g. kafkareceiver) still define telemetry
metrics using:

telemetry.metrics..deprecated

These must be migrated to:

telemetry.metrics..stability: deprecated

This issue tracks updating contrib metadata to be compatible with the
updated schema.

Describe the solution you'd like

Describe the solution you'd like

Update contrib component metadata to comply with the current mdatagen schema by removing the unsupported deprecated field under telemetry.metrics.

For telemetry metrics that are deprecated, the metadata should instead use:

stability: deprecated

This change will make contrib metadata compatible with the updated mdatagen validation introduced in opentelemetry-collector and restore successful go generate and CI runs.

This issue will be addressed once the collector PR is merged.

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions