@@ -33,7 +33,6 @@ pub enum ExporterErrorCode {
3333 Serde ,
3434 Shutdown ,
3535 TimedOut ,
36- #[ cfg( feature = "telemetry" ) ]
3736 Telemetry ,
3837 Internal ,
3938 #[ cfg( feature = "catch_panic" ) ]
@@ -64,7 +63,6 @@ impl Display for ExporterErrorCode {
6463 Self :: Serde => write ! ( f, "Serialization/Deserialization error" ) ,
6564 Self :: Shutdown => write ! ( f, "Shutdown timed out" ) ,
6665 Self :: TimedOut => write ! ( f, "Operation timed out" ) ,
67- #[ cfg( feature = "telemetry" ) ]
6866 Self :: Telemetry => write ! ( f, "Telemetry error" ) ,
6967 Self :: Internal => write ! ( f, "Internal error" ) ,
7068 #[ cfg( feature = "catch_panic" ) ]
@@ -98,7 +96,6 @@ impl From<TraceExporterError> for ExporterError {
9896 } ,
9997 TraceExporterError :: Builder ( e) => match e {
10098 BuilderErrorKind :: InvalidUri ( _) => ExporterErrorCode :: InvalidUrl ,
101- #[ cfg( feature = "telemetry" ) ]
10299 BuilderErrorKind :: InvalidTelemetryConfig ( _) => ExporterErrorCode :: InvalidArgument ,
103100 BuilderErrorKind :: InvalidConfiguration ( _) => ExporterErrorCode :: InvalidArgument ,
104101 } ,
@@ -137,7 +134,6 @@ impl From<TraceExporterError> for ExporterError {
137134 }
138135 }
139136 TraceExporterError :: Shutdown ( _) => ExporterErrorCode :: Shutdown ,
140- #[ cfg( feature = "telemetry" ) ]
141137 TraceExporterError :: Telemetry ( _) => ExporterErrorCode :: Telemetry ,
142138 TraceExporterError :: Serialization ( _) => ExporterErrorCode :: Serde ,
143139 } ;
0 commit comments