[extension/healthcheckv2extension] Refactor internal/status to pkg/status#35648
Conversation
Versons, builder config, and metadata
Co-authored-by: Matthew Wear <matthew.wear@gmail.com>
|
@mwear Thanks for the cleanup PR. I have merged your PR and updated the |
|
@mwear Forgot about the changelog. I have added that as well. |
mwear
left a comment
There was a problem hiding this comment.
LGTM, thanks @blakerouse!
cc: @bacherfl, @evan-bradley re: #35488.
There was a problem hiding this comment.
Thank you @blakerouse!
Overall this looks good to me, I just have comments on a few supplementary details.
|
@evan-bradley I have update the requested items. But running |
I'm not sure why that doesn't work for a subdirectory, but you can run |
|
@mwear I did do that. I didn't see it generate or do anything. Maybe there is nothing to generate? |
It looks like there are two more changes needed: Add a doc.go file with the following contents: Update metadata.yml to include a type, you can just copy this: I found that if you cd into the pkg/status directory you can run |
|
@mwear @evan-bradley Thanks for the help on getting this ready. I think its ready now as the generation logic worked this time and filled in the correct information in the README. |
|
The currently failing CI check says to run |
|
@mwear Okay. maybe now its ready. 😄 |
|
Thank you @blakerouse! Your patience while working through the process of setting up a new module is appreciated. |
|
No problem! Glad to help. |
…atus (open-telemetry#35648) <!--Ex. Fixing a bug - Describe the bug and how this fixes the issue. Ex. Adding a feature - Explain what this achieves.--> #### Description Refactors the `extension/healthcheckv2extension/internal/status` into `pkg/status`. This exposes the aggregator to be used by other extensions to gather component status information using the `extension.StatusWatcher`. <!-- Issue number (e.g. open-telemetry#1234) or full URL to issue, if applicable. --> #### Link to tracking issue Closes open-telemetry#34692 <!--Describe what testing was performed and which tests were added.--> #### Testing Being it was a refactor and all the same tests provided coverage, no additional testing was added. <!--Describe the documentation added.--> #### Documentation Added a `README.md` to the `pkg/status` to provide information on where this package can be used. --------- Co-authored-by: Matthew Wear <matthew.wear@gmail.com>
Description
Refactors the
extension/healthcheckv2extension/internal/statusintopkg/status.This exposes the aggregator to be used by other extensions to gather component status information using the
extension.StatusWatcher.Link to tracking issue
Closes #34692
Testing
Being it was a refactor and all the same tests provided coverage, no additional testing was added.
Documentation
Added a
README.mdto thepkg/statusto provide information on where this package can be used.