File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
opentelemetry-sdk/src/metrics Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ hyper-util = "0.1"
3030log = " 0.4.21"
3131once_cell = " 1.13"
3232ordered-float = " 4.0"
33- pin-project-lite = " 0.2"
33+ pin-project-lite = " = 0.2.14 " # 0.2.15 is failing for cargo-check-external-types
3434prost = " 0.13"
3535prost-build = " 0.13"
3636prost-types = " 0.13"
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ use std::{
44} ;
55
66use opentelemetry:: {
7- global,
87 metrics:: { MetricsError , Result } ,
8+ otel_debug,
99} ;
1010
1111use super :: {
@@ -77,9 +77,9 @@ impl MetricReader for ManualReader {
7777 if inner. sdk_producer . is_none ( ) {
7878 inner. sdk_producer = Some ( pipeline) ;
7979 } else {
80- global :: handle_error ( MetricsError :: Config (
81- "duplicate reader registration, did not register manual reader" . into ( ) ,
82- ) )
80+ otel_debug ! (
81+ name : "ManualReader.DuplicateRegistration" ,
82+ message = "The pipeline is already registered to the Reader. Registering pipeline multiple times is not allowed." ) ;
8383 }
8484 } ) ;
8585 }
You can’t perform that action at this time.
0 commit comments