-
Notifications
You must be signed in to change notification settings - Fork 482
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
Add generated modules that output const &str for tracing
compatibility
#1334
Add generated modules that output const &str for tracing
compatibility
#1334
Conversation
Still need to test with my own project for both correctness and devex. |
Codecov ReportAttention:
... and 15 files with indirect coverage changes 📢 Thoughts on this report? Let us know! |
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.
Thanks for the contribution!
26fee09
to
ec37e08
Compare
@@ -0,0 +1,2 @@ | |||
pub mod resource; |
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.
Do we need this semconv directory along with the generated files here, now that we are regenerating the existing files?
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.
No we don't need the dir. Removed it my recent force push. Will take off the WIP soon once I double check the tests and other code.
b1f92bf
to
66019dd
Compare
tracing
compatibilitytracing
compatibility
66019dd
to
6af2909
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.
Overall supportive of this change, some nits left
@@ -0,0 +1,882 @@ | |||
// DO NOT EDIT, this is an auto-generated file |
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.
Was this file added by mistake? seems to be a dup of src/resource.rs
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 in by mistake, removing.
opentelemetry-semantic-conventions/scripts/templates/header_resource.rs
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/scripts/templates/header_resource.rs
Outdated
Show resolved
Hide resolved
opentelemetry-semantic-conventions/scripts/templates/header_resource.rs
Outdated
Show resolved
Hide resolved
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.
Changes looks good!
I am leaving my review as "request-changes", specifically for addressing the below points:
https://github.com/open-telemetry/opentelemetry-rust/pull/1334/files#r1387150519
https://github.com/open-telemetry/opentelemetry-rust/pull/1334/files#r1387146406
…ity (open-telemetry#1334) * feat: add generated modules that output const &str for tracing compatibility * fix: add tracing as a dev-dependency for doc examples * fix: remove unused code * fix: remove tracing examples from semconv docs * docs: remove extra whitespace that was added previously
const
&str
access to semantic convention keys, fixes Need&'static str
s fromsemantic-conventions
fortracing
field recording #1320, viasemconv
submodule