Skip to content

Make optional the target and the registry sub-directory for the weaver registry generate command.#962

Merged
lquerel merged 5 commits intoopen-telemetry:mainfrom
lquerel:689
Oct 7, 2025
Merged

Make optional the target and the registry sub-directory for the weaver registry generate command.#962
lquerel merged 5 commits intoopen-telemetry:mainfrom
lquerel:689

Conversation

@lquerel
Copy link
Contributor

@lquerel lquerel commented Sep 26, 2025

Closes #689

This PR aims to simplify the user experience of Weaver. Initially, Weaver required following a strict structure for templates (i.e. /registry//). With this PR, the registry subdirectory and the target are now optional.

For example, if you have your templates and the weaver.yaml file in the my-templates directory, the following command now allows you to generate the templates:

weaver registry generate --templates my-templates

In the same way, suppose your templates are in the my-templates/registry/rust directory (legacy style), the following 2 commands are equivalent.

weaver registry generate rust --templates my-templates
weaver registry generate --templates my-templates/registry/rust

@lquerel lquerel requested a review from a team as a code owner September 26, 2025 19:09
Copy link
Contributor

@jerbly jerbly left a comment

Choose a reason for hiding this comment

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

LGTM

@lquerel lquerel enabled auto-merge (squash) October 7, 2025 04:38
@lquerel lquerel merged commit 47fa2c7 into open-telemetry:main Oct 7, 2025
20 checks passed
@codecov
Copy link

codecov bot commented Oct 7, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.9%. Comparing base (300e909) to head (e0e8391).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@          Coverage Diff          @@
##            main    #962   +/-   ##
=====================================
  Coverage   77.9%   77.9%           
=====================================
  Files         76      76           
  Lines       6020    6020           
=====================================
+ Hits        4693    4695    +2     
+ Misses      1327    1325    -2     

☔ 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.

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.

Make the intermediate registry directory optional within templates

4 participants