Use weaver for semantic convention codegen#70
Use weaver for semantic convention codegen#70jack-berg merged 38 commits intoopen-telemetry:mainfrom
Conversation
jack-berg
left a comment
There was a problem hiding this comment.
What's the difference between build tools and weaver? Is the community trying to transition away from build tools?
19eb631 to
f045f41
Compare
|
Update this, but we're now getting issues where weaver can't appropriately "javadoc-friendly" a comment, e.g.: |
96eb361 to
580363b
Compare
|
@jack-berg This is ready for review now. We have the javadoc/comment fixes in place for codegen. I haven't consolidated down to calling weaver ONCE in gradle yet, but I can do that in a follow up PR. |
Fixed
FYI - the |
| /** The version of the artifact. */ | ||
| public static final AttributeKey<String> ARTIFACT_VERSION = stringKey("artifact.version"); | ||
|
|
||
| // Enum definitions |
There was a problem hiding this comment.
FYI - I can remove this in the template when there aren't enum definiitons if you'd like to see that.
There was a problem hiding this comment.
I don't think its a big deal. Your choice.
There was a problem hiding this comment.
Let's leave as-is for now.
Once we're on weaver (the important piece of this PR) there's incremental improvements we can begin making - but I'd like to focus on progress.
| /** test */ | ||
| public static final String TEST = "test"; | ||
|
|
||
| /** deploy. */ |
There was a problem hiding this comment.
FYI - there's a conversation on weaver about whether we need a feature to force ending . in comments, see: https://cloud-native.slack.com/archives/C0697EXNTL3/p1725530857893809
I have concerns fixing this may just cause more problems in comment generation, and these one-word descriptions should be fixed upstream, but as an FYI - I wasn't able to safely fix the . vs. "no dot" here.
There was a problem hiding this comment.
The GH issue for tracking open-telemetry/weaver#353
I wasn't sure what you might want to change/fix about codegen when moving to weaver, so this attempts to keep the status quo as best as possible.
TODOs
stability: deprecatedattributes back to incubating classes.Possible Improvements thanks to weaver