File tree Expand file tree Collapse file tree 2 files changed +6
-12
lines changed
opentelemetry-otlp/tests/integration_test/tests Expand file tree Collapse file tree 2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -34,10 +34,9 @@ async fn init_metrics() -> SdkMeterProvider {
3434 . with_timeout ( Duration :: from_secs ( 1 ) )
3535 . build ( ) ;
3636
37- let resource = Resource :: new ( vec ! [ KeyValue :: new(
38- opentelemetry_semantic_conventions:: resource:: SERVICE_NAME ,
39- "metrics-integration-test" ,
40- ) ] ) ;
37+ let resource = Resource :: builder_empty ( )
38+ . with_service_name ( "metrics-integration-test" )
39+ . build ( ) ;
4140
4241 let meter_provider = MeterProviderBuilder :: default ( )
4342 . with_resource ( resource)
@@ -284,10 +283,9 @@ mod tests {
284283 . with_interval ( Duration :: from_millis ( 100 ) )
285284 . with_timeout ( Duration :: from_secs ( 1 ) )
286285 . build ( ) ;
287- let resource = Resource :: new ( vec ! [ KeyValue :: new(
288- opentelemetry_semantic_conventions:: resource:: SERVICE_NAME ,
289- "metrics-integration-test" ,
290- ) ] ) ;
286+ let resource = Resource :: builder_empty ( )
287+ . with_service_name ( "metrics-integration-test" )
288+ . build ( ) ;
291289 let meter_provider = MeterProviderBuilder :: default ( )
292290 . with_resource ( resource)
293291 . with_reader ( reader)
Original file line number Diff line number Diff line change @@ -5,10 +5,6 @@ TEST_DIR="./opentelemetry-otlp/tests/integration_test/tests"
55if [ -d " $TEST_DIR " ]; then
66 cd " $TEST_DIR "
77
8- # Debug
9- cargo tree
10- cat /home/runner/work/opentelemetry-rust/opentelemetry-rust/opentelemetry-sdk/src/resource/mod.rs
11-
128 # Run tests with the grpc-tonic feature
139 cargo test --no-default-features --features " tonic-client"
1410
You can’t perform that action at this time.
0 commit comments