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

[mdatagen] Generate documentation for components with resource attributes only #11242

Merged

Conversation

ChrsMark
Copy link
Member

Description

This PR adds support for generating documentation.md files for components which only define resource attributes.
This was reported at #10705 and also applies at open-telemetry/opentelemetry-collector-contrib#34210.

Link to tracking issue

Fixes #10705

Testing

Tuned tests and added a sample processor component which only defines resource attributes.

Documentation

@ChrsMark ChrsMark requested a review from a team as a code owner September 23, 2024 08:42
Copy link

codecov bot commented Sep 23, 2024

Codecov Report

Attention: Patch coverage is 92.04545% with 7 lines in your changes missing coverage. Please review.

Project coverage is 91.54%. Comparing base (403f1df) to head (e5892a8).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...pleprocessor/internal/metadata/generated_config.go 88.23% 2 Missing and 2 partials ⚠️
...eprocessor/internal/metadata/generated_resource.go 91.42% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11242      +/-   ##
==========================================
+ Coverage   91.52%   91.54%   +0.01%     
==========================================
  Files         428      431       +3     
  Lines       20233    20320      +87     
==========================================
+ Hits        18519    18602      +83     
- Misses       1339     1342       +3     
- Partials      375      376       +1     

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

@ChrsMark ChrsMark force-pushed the metagen_resource_attrs_only_doc branch 5 times, most recently from f770453 to ad21e5c Compare October 1, 2024 07:57
@mx-psi
Copy link
Member

mx-psi commented Oct 1, 2024

needs make gogenerate

@ChrsMark ChrsMark force-pushed the metagen_resource_attrs_only_doc branch 3 times, most recently from ea1c14d to 47b8d38 Compare October 4, 2024 07:08
…utes only

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
@ChrsMark ChrsMark force-pushed the metagen_resource_attrs_only_doc branch from 47b8d38 to 8f82a06 Compare October 4, 2024 08:55
@ChrsMark
Copy link
Member Author

ChrsMark commented Oct 4, 2024

@mx-psi it should be fixed now

@mx-psi mx-psi merged commit a260518 into open-telemetry:main Oct 4, 2024
48 of 49 checks passed
@github-actions github-actions bot added this to the next release milestone Oct 4, 2024
jackgopack4 pushed a commit to jackgopack4/opentelemetry-collector that referenced this pull request Oct 8, 2024
…utes only (open-telemetry#11242)

<!--Ex. Fixing a bug - Describe the bug and how this fixes the issue.
Ex. Adding a feature - Explain what this achieves.-->
#### Description
This PR adds support for generating `documentation.md` files for
components which only define resource attributes.
This was reported at
open-telemetry#10705
and also applies at
open-telemetry/opentelemetry-collector-contrib#34210.

<!-- Issue number if applicable -->
#### Link to tracking issue
Fixes
open-telemetry#10705

<!--Describe what testing was performed and which tests were added.-->
#### Testing
Tuned tests and added a sample processor component which only defines
resource attributes.

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

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

Signed-off-by: ChrsMark <chrismarkou92@gmail.com>
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.

[mdatagen] Documentation is not generated for resource attributes without metrics
3 participants