Skip to content

Commit 98d3e87

Browse files
committed
chore: remove redundant cfg feature attributes
these modules are conditionally included by the same flags in lib
1 parent b836ece commit 98d3e87

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

opentelemetry-otlp/src/exporter/http/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ mod logs;
3434
mod trace;
3535

3636
/// Configuration of the http transport
37-
#[cfg(any(feature = "http-proto", feature = "http-json"))]
3837
#[derive(Debug)]
3938
#[cfg_attr(
4039
all(
@@ -380,14 +379,12 @@ fn add_header_from_string(input: &str, headers: &mut HashMap<HeaderName, HeaderV
380379
}
381380

382381
/// Expose interface for modifying builder config.
383-
#[cfg(any(feature = "http-proto", feature = "http-json"))]
384382
pub trait HasHttpConfig {
385383
/// Return a mutable reference to the config within the exporter builders.
386384
fn http_client_config(&mut self) -> &mut HttpConfig;
387385
}
388386

389387
/// Expose interface for modifying builder config.
390-
#[cfg(any(feature = "http-proto", feature = "http-json"))]
391388
impl HasHttpConfig for HttpExporterBuilder {
392389
fn http_client_config(&mut self) -> &mut HttpConfig {
393390
&mut self.http_config

opentelemetry-otlp/src/exporter/tonic/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -496,7 +496,6 @@ mod tests {
496496
}
497497

498498
#[test]
499-
#[cfg(feature = "grpc-tonic")]
500499
fn test_convert_compression() {
501500
#[cfg(feature = "gzip-tonic")]
502501
assert!(tonic::codec::CompressionEncoding::try_from(Compression::Gzip).is_ok());

opentelemetry-otlp/src/metric.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ impl<C> MetricsExporterBuilder<C> {
6767
}
6868
}
6969

70-
#[cfg(any(feature = "http-proto", feature = "http-json", feature = "grpc-tonic"))]
7170
pub fn with_temporality(self, temporality: Temporality) -> MetricsExporterBuilder<C> {
7271
MetricsExporterBuilder {
7372
client: self.client,

0 commit comments

Comments
 (0)