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

[SEMANTIC CONVENTIONS] Migration to weaver #3105

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

marcalff
Copy link
Member

Fixes #3089

Changes

Please provide a brief description of the changes here.

For significant contributions please make sure you have completed the following items:

  • CHANGELOG.md updated for non-trivial changes
  • Unit tests have been added
  • Changes in public API reviewed

Copy link

netlify bot commented Oct 16, 2024

Deploy Preview for opentelemetry-cpp-api-docs canceled.

Name Link
🔨 Latest commit 07e0e67
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-cpp-api-docs/deploys/67295ff72f659100089ff2d6

@marcalff marcalff changed the title Migration to weaver - work in progress [WIP] Migration to weaver Oct 16, 2024
Copy link

codecov bot commented Oct 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.88%. Comparing base (497eaf4) to head (07e0e67).
Report is 152 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3105      +/-   ##
==========================================
+ Coverage   87.12%   87.88%   +0.76%     
==========================================
  Files         200      195       -5     
  Lines        6109     6137      +28     
==========================================
+ Hits         5322     5393      +71     
+ Misses        787      744      -43     
Files with missing lines Coverage Δ
sdk/src/resource/resource.cc 96.30% <100.00%> (ø)
sdk/src/resource/resource_detector.cc 100.00% <100.00%> (ø)

... and 106 files with indirect coverage changes

@marcalff marcalff marked this pull request as ready for review October 30, 2024 22:27
@marcalff marcalff requested a review from a team as a code owner October 30, 2024 22:27
@marcalff
Copy link
Member Author

Reviewers:

Generated code

Code under api/include/opentelemetry/semconv is generated automatically.
There is no need to review each file, just sample a few.

Make sure to review at least:

  • file schema_url.h, because it is special
  • an xxx_attributes.h file,
  • an xxx_metrics.h file.

Weaver generation

All relevant code is under buildscripts/semantic-convention.

Please review:

  • file weaver.yaml
  • every jinja templates (*.j2 files)
  • the generator script

Example of usage

Various examples, tests, sdk files have been updated, and now use the new semconv generated code.

@marcalff
Copy link
Member Author

@open-telemetry/weaver-maintainers @open-telemetry/cpp-maintainers Please review, and provide feedback.

@marcalff marcalff changed the title [WIP] Migration to weaver [RFC] Migration to weaver Oct 30, 2024
Copy link

@lquerel lquerel left a comment

Choose a reason for hiding this comment

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

Very nice use of Weaver. Thank you for this migration.

@marcalff marcalff changed the title [RFC] Migration to weaver [SEMANTIC CONVENTIONS] Migration to weaver Oct 31, 2024
@marcalff marcalff added the pr:please-review This PR is ready for review label Oct 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:please-review This PR is ready for review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate semantic conventions code generation to weaver
2 participants