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

[componentstatus] Add Reporter interface #10852

Merged

Conversation

TylerHelmuth
Copy link
Member

@TylerHelmuth TylerHelmuth commented Aug 12, 2024

Description

Adds a Reporter interface that represents how a component.Host implementation could expose the ability to report a status.

You can see how this interface will be used by looking at Related to #10777

Link to tracking issue

Related to #10777
Related to #10413

Testing

Added unit test

@TylerHelmuth TylerHelmuth requested review from a team and bogdandrutu August 12, 2024 15:44
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 91.64%. Comparing base (643c17e) to head (d625367).

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #10852   +/-   ##
=======================================
  Coverage   91.64%   91.64%           
=======================================
  Files         406      406           
  Lines       19001    19005    +4     
=======================================
+ Hits        17414    17418    +4     
  Misses       1227     1227           
  Partials      360      360           

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

@mx-psi mx-psi merged commit 23236b4 into open-telemetry:main Aug 13, 2024
49 checks passed
@github-actions github-actions bot added this to the next release milestone Aug 13, 2024
@TylerHelmuth TylerHelmuth deleted the componentstatus-add-reporter-interface branch August 13, 2024 18:02
mx-psi pushed a commit that referenced this pull request Aug 14, 2024
#### Description
This is a prep PR to reduce the size of
#10777. As
part of the work to make our `component.Host` implementation implement
`componentstatus.Reporter` (see
#10852),
the `host` struct and `graph` logic need to be closer together. This is
because, as part of
#10777
`StartAll` is changed to depend on our specific `Host` type instead of a
`component.Host`. Our host already has a dependency on `graph`, so it
can't be moved into its own module.

<!-- Issue number if applicable -->
#### Link to tracking issue
Related to
#10777
Related to
#10413
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.

3 participants