Skip to content

V2 Resolved Schema#980

Merged
jsuereth merged 51 commits into
open-telemetry:mainfrom
jsuereth:wip-v2-resolved-schema
Nov 19, 2025
Merged

V2 Resolved Schema#980
jsuereth merged 51 commits into
open-telemetry:mainfrom
jsuereth:wip-v2-resolved-schema

Conversation

@jsuereth

@jsuereth jsuereth commented Oct 10, 2025

Copy link
Copy Markdown
Contributor

Ready for review

This modifies the resolved telemetry schema (and template values) to look like the V2 definition schema.

With this PR you can resolve into the new schema via a new flag to check how it looks, e.g.

weaver registry resolve --v2 > test.yaml

Here's a sample of the new layout:

attributes:
  - key: android.app.state
    type:
      ...
signals:
  metrics:
  - name: aspnetcore.authentication.authenticate.duration
    instrument: histogram
    unit: s
    ...
  spans:
  - type: aws.client
    ...
  events:
  - name: app.jank
    ...
  entities:
  - type: android
    ...
refinements:
  metrics:
  - id: ...refinement id...
    ...full metric definition...
  spans:
    - id: ...refinement id...
    ...full span definition...
  events:
    - id: ...refinement id...
    ...full event definition...

@lmolkova lmolkova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

left some comments, but looks great overall!

Comment thread crates/weaver_forge/src/lib.rs Outdated
Comment thread crates/weaver_forge/src/v2/metric.rs Outdated
Comment thread crates/weaver_forge/src/v2/registry.rs
Comment thread crates/weaver_forge/src/v2/registry.rs Outdated
Comment thread crates/weaver_forge/src/v2/registry.rs
Comment thread crates/weaver_resolved_schema/src/v2/event.rs Outdated
Comment thread crates/weaver_resolved_schema/src/v2/event.rs
Comment thread crates/weaver_resolved_schema/src/v2/event.rs Outdated
Comment thread crates/weaver_resolved_schema/src/v2/event.rs Outdated
Comment thread src/registry/resolve.rs Outdated
Comment thread crates/weaver_resolved_schema/src/v2/event.rs
Comment thread crates/weaver_resolved_schema/src/v2/registry.rs
Comment thread crates/weaver_resolved_schema/src/v2/registry.rs Outdated

@lquerel lquerel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Wow, it took me quite some time to go through all of this. Thanks for the massive refactoring of the semconv schema and everything that comes with it!

Sorry for the number of comments. A lot of them are just copy/paste issues or typos. There are probably only a handful that really concern the approach or the decisions made. Apologies in advance if some of these points or answers have already been discussed in the SIG meetings; I haven't been very present in those lately.

Comment thread crates/weaver_forge/src/v2/entity.rs
Comment thread crates/weaver_forge/src/v2/entity.rs
Comment thread crates/weaver_forge/src/v2/entity.rs Outdated
Comment thread crates/weaver_forge/src/v2/entity.rs Outdated
Comment thread crates/weaver_forge/src/v2/entity.rs Outdated
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Outdated
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs
Comment thread src/registry/resolve.rs Outdated
Comment thread crates/weaver_resolved_schema/src/v2/event.rs
Comment thread crates/weaver_resolved_schema/src/v2/registry.rs
@jsuereth
jsuereth force-pushed the wip-v2-resolved-schema branch from 67e6762 to 209883f Compare October 20, 2025 19:25
Comment thread crates/weaver_resolved_schema/src/lib.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed

@github-advanced-security github-advanced-security AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

clippy found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.

@codecov

codecov Bot commented Oct 28, 2025

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.53153% with 82 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.5%. Comparing base (44c6066) to head (f69c191).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
crates/weaver_forge/src/v2/registry.rs 79.3% 46 Missing ⚠️
crates/weaver_resolved_schema/src/v2/mod.rs 84.4% 26 Missing ⚠️
crates/weaver_resolved_schema/src/v2/registry.rs 0.0% 6 Missing ⚠️
crates/weaver_resolved_schema/src/lib.rs 33.3% 2 Missing ⚠️
crates/weaver_resolved_schema/src/v2/attribute.rs 0.0% 2 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##            main    #980     +/-   ##
=======================================
+ Coverage   78.3%   78.5%   +0.2%     
=======================================
  Files         77      82      +5     
  Lines       6122    6564    +442     
=======================================
+ Hits        4795    5156    +361     
- Misses      1327    1408     +81     

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

Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/mod.rs Fixed
Comment thread crates/weaver_resolved_schema/src/lineage.rs Fixed
Comment thread crates/weaver_resolved_schema/src/lineage.rs Fixed
Comment thread crates/weaver_resolved_schema/src/lineage.rs Fixed
Comment thread crates/weaver_resolved_schema/src/lineage.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
@jsuereth
jsuereth marked this pull request as ready for review November 3, 2025 21:08
@jsuereth
jsuereth requested a review from a team as a code owner November 3, 2025 21:08
@lmolkova

lmolkova commented Nov 3, 2025

Copy link
Copy Markdown
Member

@lmolkova

This comment was marked as resolved.

Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed
Comment thread crates/weaver_resolved_schema/src/v2/catalog.rs Fixed

@lmolkova lmolkova left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tested weaver registry resolve --v2 and it works. I'm in favor of merging it and following up

Comment thread crates/weaver_forge/src/v2/registry.rs Fixed
Comment thread crates/weaver_forge/src/v2/entity.rs Outdated
@jsuereth jsuereth changed the title [WIP] V2 Resolved Schema V2 Resolved Schema Nov 17, 2025

@lquerel lquerel left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks!

@jsuereth
jsuereth merged commit bc2f642 into open-telemetry:main Nov 19, 2025
24 checks passed
@jsuereth
jsuereth deleted the wip-v2-resolved-schema branch November 19, 2025 18:05
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.

6 participants