Skip to content

use weaver to generate semconv#1398

Merged
brettmc merged 10 commits into
open-telemetry:mainfrom
brettmc:weaver
Oct 17, 2024
Merged

use weaver to generate semconv#1398
brettmc merged 10 commits into
open-telemetry:mainfrom
brettmc:weaver

Conversation

@brettmc

@brettmc brettmc commented Oct 11, 2024

Copy link
Copy Markdown
Contributor

update semconv generation to use the new tooling. This is fairly close to a 1:1 of what we have now, although I noted a couple of TODOs which we might consider in future to align with what Java is doing: split attribute up into file-per-type, and split stable/unstable.

The diffs are fairly small (mostly related to formatting of comments, which weaver improves). I've removed our manually-maintained deprecations, since the semconv SIG is a lot more careful now about removing stuff - that accounts for most removals.

Fixes: #1396

update semconv generation to use the new tooling. This is fairly close to a 1:1 of what we have now,
although I noted a couple of TODOs which we might consider in future to align with what Java is
doing: split attribute up into file-per-type, and split stable/unstable.
@brettmc
brettmc requested a review from a team as a code owner October 11, 2024 05:32
@netlify

netlify Bot commented Oct 11, 2024

Copy link
Copy Markdown

Deploy Preview for opentelemetry-php canceled.

Name Link
🔨 Latest commit 21e5126
🔍 Latest deploy log https://app.netlify.com/sites/opentelemetry-php/deploys/670dd62710fd540008e8a98b

@codecov

codecov Bot commented Oct 11, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 73.80%. Comparing base (cd8c0e3) to head (21e5126).
Report is 6 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##               main    #1398      +/-   ##
============================================
- Coverage     73.85%   73.80%   -0.06%     
  Complexity     2672     2672              
============================================
  Files           386      386              
  Lines          7650     7650              
============================================
- Hits           5650     5646       -4     
- Misses         2000     2004       +4     
Flag Coverage Δ
8.1 73.46% <ø> (-0.04%) ⬇️
8.2 73.72% <ø> (-0.10%) ⬇️
8.3 73.65% <ø> (ø)
8.4 73.67% <ø> (-0.04%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

see 5 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update cd8c0e3...21e5126. Read the comment docs.

@brettmc
brettmc marked this pull request as draft October 11, 2024 05:57
@brettmc
brettmc marked this pull request as ready for review October 15, 2024 02:55
# - https://github.com/open-telemetry/semantic-conventions/releases
# - https://github.com/open-telemetry/build-tools/releases
set -e
set -ex

@bobstrecansky bobstrecansky Oct 16, 2024

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.

Do we want to write a trace for each command before execution? I'm assuming this is an output from shellcheck.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It doesn't hurt, and is quite helpful for debugging. Other SIGs which I took inspiration from also have this set...

@bobstrecansky bobstrecansky 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.

One minor non-blocking nit, but the rest looks kosher. Thanks @brettmc

@brettmc
brettmc merged commit d2b1507 into open-telemetry:main Oct 17, 2024
@brettmc
brettmc deleted the weaver branch January 29, 2025 21:52
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.

Migrate semantic conventions code generation to weaver

2 participants