@@ -30,13 +30,13 @@ impl ResourceDetector for HostResourceDetector {
3030 // Get host.id
3131 ( self . host_id_detect ) ( ) . map ( |host_id| {
3232 KeyValue :: new (
33- opentelemetry_semantic_conventions:: resource :: HOST_ID ,
33+ opentelemetry_semantic_conventions:: attribute :: HOST_ID ,
3434 host_id,
3535 )
3636 } ) ,
3737 // Get host.arch
3838 Some ( KeyValue :: new (
39- opentelemetry_semantic_conventions:: resource :: HOST_ARCH ,
39+ opentelemetry_semantic_conventions:: attribute :: HOST_ARCH ,
4040 ARCH ,
4141 ) ) ,
4242 ]
@@ -99,12 +99,12 @@ mod tests {
9999 assert_eq ! ( resource. len( ) , 2 ) ;
100100 assert ! ( resource
101101 . get( Key :: from_static_str(
102- opentelemetry_semantic_conventions:: resource :: HOST_ID
102+ opentelemetry_semantic_conventions:: attribute :: HOST_ID
103103 ) )
104104 . is_some( ) ) ;
105105 assert ! ( resource
106106 . get( Key :: from_static_str(
107- opentelemetry_semantic_conventions:: resource :: HOST_ARCH
107+ opentelemetry_semantic_conventions:: attribute :: HOST_ARCH
108108 ) )
109109 . is_some( ) )
110110 }
@@ -117,12 +117,12 @@ mod tests {
117117 assert_eq ! ( resource. len( ) , 2 ) ;
118118 assert ! ( resource
119119 . get( Key :: from_static_str(
120- opentelemetry_semantic_conventions:: resource :: HOST_ID
120+ opentelemetry_semantic_conventions:: attribute :: HOST_ID
121121 ) )
122122 . is_some( ) ) ;
123123 assert ! ( resource
124124 . get( Key :: from_static_str(
125- opentelemetry_semantic_conventions:: resource :: HOST_ARCH
125+ opentelemetry_semantic_conventions:: attribute :: HOST_ARCH
126126 ) )
127127 . is_some( ) )
128128 }
@@ -133,22 +133,22 @@ mod tests {
133133
134134 assert ! ( resource
135135 . get( Key :: from_static_str(
136- opentelemetry_semantic_conventions:: resource :: HOST_ARCH
136+ opentelemetry_semantic_conventions:: attribute :: HOST_ARCH
137137 ) )
138138 . is_some( ) ) ;
139139
140140 #[ cfg( target_arch = "x86_64" ) ]
141141 assert_eq ! (
142142 resource. get( Key :: from_static_str(
143- opentelemetry_semantic_conventions:: resource :: HOST_ARCH
143+ opentelemetry_semantic_conventions:: attribute :: HOST_ARCH
144144 ) ) ,
145145 Some ( Value :: from( "x86_64" ) )
146146 ) ;
147147
148148 #[ cfg( target_arch = "aarch64" ) ]
149149 assert_eq ! (
150150 resource. get( Key :: from_static_str(
151- opentelemetry_semantic_conventions:: resource :: HOST_ARCH
151+ opentelemetry_semantic_conventions:: attribute :: HOST_ARCH
152152 ) ) ,
153153 Some ( Value :: from( "aarch64" ) )
154154 )
0 commit comments