-
Notifications
You must be signed in to change notification settings - Fork 95
Allow cross-registry refinements #1587
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
lmolkova
merged 4 commits into
open-telemetry:main
from
lmolkova:pr1-cross-registry-refinements
Jul 16, 2026
+506
−177
Merged
Changes from 2 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
crates/weaver_resolver/data/registry-test-v2-dep/entity_registry/registry/manifest.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| description: Consumer registry that refines an entity from the server V2 package. | ||
| schema_url: https://entity-consumer.example.com/schemas/1.0.0 | ||
| dependencies: | ||
| - schema_url: https://server.example.com/schemas/1.0.0 | ||
| registry_path: data/registry-test-v2-dep/published |
9 changes: 9 additions & 0 deletions
9
crates/weaver_resolver/data/registry-test-v2-dep/entity_registry/registry/registry.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| file_format: definition/2 | ||
| entity_refinements: | ||
| # Refines `host` from the dependency: only the brief is refined. The | ||
| # identity attributes (`host.id` required, `host.arch` recommended) and the | ||
| # description attribute (`host.name` recommended) are not mentioned and must | ||
| # be inherited from the dependency with their requirement levels and roles. | ||
| - id: refined.host | ||
| ref: host | ||
| brief: Refined host entity |
39 changes: 39 additions & 0 deletions
39
crates/weaver_resolver/data/registry-test-v2-dep/event_registry/expected-schema.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| file_format: resolved/2.0 | ||
| schema_url: https://event-consumer.example.com/schemas/1.0.0 | ||
| attribute_catalog: | ||
| - key: server.address | ||
| type: string | ||
| examples: | ||
| - example.com | ||
| brief: Different brief | ||
| note: Different note | ||
| stability: stable | ||
| - key: server.port | ||
| type: int | ||
| examples: | ||
| - 80 | ||
| - 443 | ||
| brief: Refined server port | ||
| stability: stable | ||
| registry: | ||
| attributes: [] | ||
| attribute_groups: [] | ||
| spans: [] | ||
| metrics: [] | ||
| events: [] | ||
| entities: [] | ||
| refinements: | ||
| spans: [] | ||
| metrics: [] | ||
| events: | ||
| - id: refined.error | ||
| name: refined.error | ||
| attributes: | ||
| - base: 0 | ||
| requirement_level: required | ||
| - base: 1 | ||
| requirement_level: recommended | ||
| brief: Refined server error event | ||
| stability: stable | ||
| dependencies: | ||
| - https://server.example.com/schemas/1.0.0 |
5 changes: 5 additions & 0 deletions
5
crates/weaver_resolver/data/registry-test-v2-dep/event_registry/registry/manifest.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| description: Consumer registry that refines an event from the server V2 package. | ||
| schema_url: https://event-consumer.example.com/schemas/1.0.0 | ||
| dependencies: | ||
| - schema_url: https://server.example.com/schemas/1.0.0 | ||
| registry_path: data/registry-test-v2-dep/published |
11 changes: 11 additions & 0 deletions
11
crates/weaver_resolver/data/registry-test-v2-dep/event_registry/registry/registry.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| file_format: definition/2 | ||
| event_refinements: | ||
| # Refines `server.error` from the dependency: `server.port` gets a refined | ||
| # brief; `server.address` is not mentioned and must be inherited with its | ||
| # `required` requirement level. | ||
| - id: refined.error | ||
| ref: server.error | ||
| brief: Refined server error event | ||
| attributes: | ||
| - ref: server.port | ||
| brief: Refined server port |
41 changes: 41 additions & 0 deletions
41
crates/weaver_resolver/data/registry-test-v2-dep/metric_registry/expected-schema.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,41 @@ | ||
| file_format: resolved/2.0 | ||
| schema_url: https://metric-consumer.example.com/schemas/1.0.0 | ||
| attribute_catalog: | ||
| - key: server.address | ||
| type: string | ||
| examples: | ||
| - example.com | ||
| brief: Different brief | ||
| note: Different note | ||
| stability: stable | ||
| - key: server.port | ||
| type: int | ||
| examples: | ||
| - 80 | ||
| - 443 | ||
| brief: Refined server port | ||
| stability: stable | ||
| registry: | ||
| attributes: [] | ||
| attribute_groups: [] | ||
| spans: [] | ||
| metrics: [] | ||
| events: [] | ||
| entities: [] | ||
| refinements: | ||
| spans: [] | ||
| metrics: | ||
| - id: refined.duration | ||
| name: server.request.duration | ||
| instrument: histogram | ||
| unit: s | ||
| attributes: | ||
| - base: 0 | ||
| requirement_level: required | ||
| - base: 1 | ||
| requirement_level: recommended | ||
| brief: Refined server request duration | ||
| stability: stable | ||
| events: [] | ||
| dependencies: | ||
| - https://server.example.com/schemas/1.0.0 |
5 changes: 5 additions & 0 deletions
5
crates/weaver_resolver/data/registry-test-v2-dep/metric_registry/registry/manifest.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| description: Consumer registry that refines a metric from the server V2 package. | ||
| schema_url: https://metric-consumer.example.com/schemas/1.0.0 | ||
| dependencies: | ||
| - schema_url: https://server.example.com/schemas/1.0.0 | ||
| registry_path: data/registry-test-v2-dep/published |
11 changes: 11 additions & 0 deletions
11
crates/weaver_resolver/data/registry-test-v2-dep/metric_registry/registry/registry.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| file_format: definition/2 | ||
| metric_refinements: | ||
| # Refines `server.request.duration` from the dependency: `server.port` gets | ||
| # a refined brief; `server.address` is not mentioned and must be inherited | ||
| # from the dependency with its `required` requirement level. | ||
| - id: refined.duration | ||
| ref: server.request.duration | ||
| brief: Refined server request duration | ||
| attributes: | ||
| - ref: server.port | ||
| brief: Refined server port |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.