-
Notifications
You must be signed in to change notification settings - Fork 56
V2 Resolved Schema #980
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
base: main
Are you sure you want to change the base?
V2 Resolved Schema #980
Conversation
lmolkova
left a comment
There was a problem hiding this comment.
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!
crates/weaver_forge/src/lib.rs
Outdated
|
|
||
| assert!(diff_dir("expected_output/test", "observed_output/test").unwrap()); | ||
|
|
||
| // TODO - Remove this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it ok to remove now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still using this to test/demo. I was going to remove after we lock-in on the details of the schema.
| instrument: metric.instrument, | ||
| unit: metric.unit, | ||
| attributes, | ||
| entity_associations: metric.entity_associations, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not blocking, we can follow-up: we're checking that attributes exist, but not checking it for entities, it seems inconsistent.
lquerel
left a comment
There was a problem hiding this comment.
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.
crates/weaver_forge/src/v2/entity.rs
Outdated
| /// The type of the entity. | ||
| pub r#type: SignalId, | ||
|
|
||
| /// List of attributes that belong to this event. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment would benefit from being updated to match the field below :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, I was rushing for the demo, I'll clean all these up - Didn't want this to be a full review, more of "check the direction" review.
I think the discussion on Attribute/AttributeRef is the thing to focus on in this review :)
…pans, no real tests.
…creating V2 schema.
67e6762 to
209883f
Compare
There was a problem hiding this comment.
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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #980 +/- ##
=======================================
+ Coverage 78.3% 78.5% +0.1%
=======================================
Files 77 82 +5
Lines 6122 6564 +442
=======================================
+ Hits 4799 5157 +358
- Misses 1323 1407 +84 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
…vert resolved schema to v2.
|
testing this out on semconv and checking against problems identified for v1 in open-telemetry/semantic-conventions#2469 Resolved schema v2 - https://gist.githubusercontent.com/lmolkova/34dc5c0b0f583ca80681af3c9334238d/raw/d5b1ce469f149c1586b277cf3fe0f5772a480b72/semconv_schema_v2_copy.yaml works fine now ! |
This comment was marked as resolved.
This comment was marked as resolved.
lmolkova
left a comment
There was a problem hiding this comment.
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
…r testing (which codecov doesn't see).
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.
Here's a sample of the new layout: