File tree 2 files changed +6
-12
lines changed
opentelemetry-otlp/tests/integration_test/tests
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 {
34
34
. with_timeout ( Duration :: from_secs ( 1 ) )
35
35
. build ( ) ;
36
36
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 ( ) ;
41
40
42
41
let meter_provider = MeterProviderBuilder :: default ( )
43
42
. with_resource ( resource)
@@ -284,10 +283,9 @@ mod tests {
284
283
. with_interval ( Duration :: from_millis ( 100 ) )
285
284
. with_timeout ( Duration :: from_secs ( 1 ) )
286
285
. 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 ( ) ;
291
289
let meter_provider = MeterProviderBuilder :: default ( )
292
290
. with_resource ( resource)
293
291
. 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"
5
5
if [ -d " $TEST_DIR " ]; then
6
6
cd " $TEST_DIR "
7
7
8
- # Debug
9
- cargo tree
10
- cat /home/runner/work/opentelemetry-rust/opentelemetry-rust/opentelemetry-sdk/src/resource/mod.rs
11
-
12
8
# Run tests with the grpc-tonic feature
13
9
cargo test --no-default-features --features " tonic-client"
14
10
You can’t perform that action at this time.
0 commit comments