Skip to content

Commit

Permalink
chore(build): Fix issue with reexport of deprecated statement
Browse files Browse the repository at this point in the history
  • Loading branch information
lquerel committed Sep 21, 2024
1 parent 664678d commit e31d4eb
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#[cfg(feature = "semconv_experimental")]
{% endif %}
{% if attr is deprecated %}
#[deprecated(note="{{ attr.deprecated.strip(" \n\"") }}")]
#[allow(deprecated)]
{% endif %}
pub use crate::attribute::{{ attr.name | screaming_snake_case }};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#[cfg(feature = "semconv_experimental")]
{% endif %}
{% if attr is deprecated %}
#[deprecated(note="{{ attr.deprecated.strip(" \n\"") }}")]
#[allow(deprecated)]
{% endif %}
pub use crate::attribute::{{ attr.name | screaming_snake_case }};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ templates:
| map(.attributes[])
| unique_by(.name)
| sort_by(.name)
| map({name, brief, examples, requirement_level, stability, type})
| map({name, brief, examples, deprecated, requirement_level, stability, type})
application_mode: single
- pattern: trace.rs.j2
filter: >
semconv_signal("span"; $params) + semconv_signal("event"; $params)
| map(.attributes[])
| unique_by(.name)
| sort_by(.name)
| map({name, brief, examples, requirement_level, stability, type})
| map({name, brief, examples, deprecated, requirement_level, stability, type})
application_mode: single
- pattern: lib.rs.j2
filter: .
Expand Down
3 changes: 3 additions & 0 deletions opentelemetry-semantic-conventions/src/trace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,15 @@ pub use crate::attribute::DB_QUERY_TEXT;
pub use crate::attribute::DB_SYSTEM;

#[cfg(feature = "semconv_experimental")]
#[allow(deprecated)]
pub use crate::attribute::ENDUSER_ID;

#[cfg(feature = "semconv_experimental")]
#[allow(deprecated)]
pub use crate::attribute::ENDUSER_ROLE;

#[cfg(feature = "semconv_experimental")]
#[allow(deprecated)]
pub use crate::attribute::ENDUSER_SCOPE;

pub use crate::attribute::ERROR_TYPE;
Expand Down

0 comments on commit e31d4eb

Please sign in to comment.