Skip to content

[receiver/k8scluster] Remove usage of 'component.Host.GetExporters' #19741

Open
@djaglowski

Description

@djaglowski

Component(s)

receiver/k8scluster

Describe the issue you're reporting

See open-telemetry/opentelemetry-collector#7370 for additional context.

This receiver depends on an experimental function that may be removed in a future version. It uses this function to get a handle to a "metadata exporter". It then generates a special kind of data and sends it to this exporter.

The metadata is reported in an event driven style, where only changes are reported from this receiver to the metadata exporter.

I propose that this is not an appropriate way to pass non-standard data between components. Instead, an extension should be developed that can facilitate a publisher/subscriber model (or similar). The exporter, which currently must implement a special interface, can instead check for this extension and listen for updates. The receiver, which currently asks for a handle to the exporter and pushes updates, can instead check for the extension and push there instead.

Todo

We will execute according to design document here: https://docs.google.com/document/d/1Tg18sIck3Nakxtd3TFFcIjrmRO_0GLMdHXylVqBQmJA/edit

Metadata

Metadata

Assignees

No one assigned

    Labels

    never staleIssues marked with this label will be never staled and automatically removedreceiver/k8scluster

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions