Skip to content

add GetFactory interface to hostcapabilities package #12789

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

Merged
merged 3 commits into from
Apr 11, 2025

Conversation

rogercoll
Copy link
Contributor

Description

The GetFactory method is used by a few receivers in the contrib package (e.g. receiver_creator). This PR adds a new interface to the hostcapabilities package so it can be cast correctly from other packages/components.

Link to tracking issue

Fixes #

Testing

Documentation

@rogercoll rogercoll requested a review from a team as a code owner April 2, 2025 15:41
@rogercoll rogercoll requested a review from jade-guiton-dd April 2, 2025 15:41
Copy link

codecov bot commented Apr 2, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.43%. Comparing base (7d854d5) to head (a77e5ae).
Report is 16 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12789      +/-   ##
==========================================
- Coverage   91.46%   91.43%   -0.04%     
==========================================
  Files         483      487       +4     
  Lines       26624    26808     +184     
==========================================
+ Hits        24351    24511     +160     
- Misses       1791     1814      +23     
- Partials      482      483       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@jade-guiton-dd jade-guiton-dd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, just a small update to the release notes.

@TylerHelmuth since you previously removed this method from the component.Host interface: are there any plans to deprecate/modify the method that would make exposing this interface counter-productive?

@mx-psi mx-psi requested a review from TylerHelmuth April 9, 2025 10:02
@TylerHelmuth
Copy link
Member

are there any plans to deprecate/modify the method that would make exposing this interface counter-productive?

It doesn't seem likely that we'll remove this capability from our Host implementation since receivercreator depends on it.

@mx-psi mx-psi requested a review from jade-guiton-dd April 10, 2025 16:07
@mx-psi mx-psi added this pull request to the merge queue Apr 11, 2025
Merged via the queue into open-telemetry:main with commit 4fb7c24 Apr 11, 2025
56 checks passed
atoulme added a commit to open-telemetry/opentelemetry-collector-contrib that referenced this pull request Apr 19, 2025
<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Use core collector API for interface validation
open-telemetry/opentelemetry-collector#12789

<!-- Issue number (e.g. #1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Co-authored-by: Antoine Toulme <[email protected]>
akshays-19 pushed a commit to akshays-19/opentelemetry-collector-contrib that referenced this pull request Apr 23, 2025
…elemetry#39453)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Use core collector API for interface validation
open-telemetry/opentelemetry-collector#12789

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Co-authored-by: Antoine Toulme <[email protected]>
Fiery-Fenix pushed a commit to Fiery-Fenix/opentelemetry-collector-contrib that referenced this pull request Apr 24, 2025
…elemetry#39453)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description

Use core collector API for interface validation
open-telemetry/opentelemetry-collector#12789

<!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. -->
#### Link to tracking issue
Fixes

<!--Describe what testing was performed and which tests were added.-->
#### Testing

<!--Describe the documentation added.-->
#### Documentation

<!--Please delete paragraphs that you did not use before submitting.-->

Co-authored-by: Antoine Toulme <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants