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

[chore] Remove all direct usage of component.host.GetExporters #32498

Conversation

TylerHelmuth
Copy link
Member

Description:
Removes all direct use of the component.Host.GetExporters function so that it can be removed from the interface.

Link to tracking Issue:
Works towards open-telemetry/opentelemetry-collector#7370

@evan-bradley evan-bradley merged commit 9a9d08e into open-telemetry:main Apr 18, 2024
160 of 162 checks passed
@github-actions github-actions bot added this to the next release milestone Apr 18, 2024
@TylerHelmuth TylerHelmuth deleted the stop-using-component-getexporters branch April 18, 2024 14:06
mx-psi added a commit to open-telemetry/opentelemetry-collector that referenced this pull request Jul 25, 2024
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

<!-- Issue number if applicable -->

Adds a note to the `component.Host` interface documenting that
components may require additional interfaces.
I think this is the only sustainable pattern post 1.0, since we won't be
able to add any new methods to the `component.Host` interface.

This pattern is also used today by:
- The zpages extension
(https://github.com/open-telemetry/opentelemetry-collector/blob/91f13c309d00eef5b997a2e810effb2a4ccd95d4/extension/zpagesextension/zpagesextension.go#L58-L66)
- The receiver creator (after
open-telemetry/opentelemetry-collector-contrib/pull/34234)
- Some contrib components
(open-telemetry/opentelemetry-collector-contrib/pull/32498)

#### Link to tracking issue

Fixes #10181
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
connector/servicegraph processor/routing Routing processor receiver/k8scluster Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants