Skip to content

Commit e59d599

Browse files
committed
Add src/semconv.rs
1 parent 481b841 commit e59d599

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/lib.rs

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pub mod http;
2525
pub use tracing_opentelemetry_instrumentation_sdk;
2626

2727
pub mod otlp;
28+
pub mod semconv;
2829

2930
#[cfg(feature = "test")]
3031
pub mod test;
@@ -35,15 +36,6 @@ pub mod future;
3536
mod filter;
3637
mod util;
3738

38-
pub mod semconv {
39-
pub use opentelemetry_semantic_conventions::trace::*;
40-
41-
pub const MESSAGING_DESTINATION_PUBLISH_NAME: &str =
42-
"messaging.destination_publish.name";
43-
pub const MESSAGING_DESTINATION_PUBLISH_ANONYMOUS: &str =
44-
"messaging.destination_publish.anonymous";
45-
}
46-
4739
#[derive(Debug, Default)]
4840
pub struct DetectResource {
4941
fallback_service_name: &'static str,

src/semconv.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
pub use opentelemetry_semantic_conventions::trace::*;
2+
3+
pub const MESSAGING_DESTINATION_PUBLISH_NAME: &str = "messaging.destination_publish.name";
4+
pub const MESSAGING_DESTINATION_PUBLISH_ANONYMOUS: &str =
5+
"messaging.destination_publish.anonymous";

0 commit comments

Comments
 (0)