Skip to content

Commit f1c7ce9

Browse files
authored
chore: fix few nit build warnings (#2848)
1 parent fa170f3 commit f1c7ce9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,7 @@ mod tests {
514514
assert!(tonic::codec::CompressionEncoding::try_from(Compression::Zstd).is_err());
515515
}
516516

517+
#[cfg(feature = "zstd-tonic")]
517518
#[test]
518519
fn test_priority_of_signal_env_over_generic_env_for_compression() {
519520
run_env_test(
@@ -532,6 +533,7 @@ mod tests {
532533
);
533534
}
534535

536+
#[cfg(feature = "zstd-tonic")]
535537
#[test]
536538
fn test_priority_of_code_based_config_over_envs_for_compression() {
537539
run_env_test(

opentelemetry-otlp/tests/integration_test/src/logs_asserter.rs

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
use anyhow::Result;
2-
use opentelemetry_proto::tonic::{
3-
common::v1::KeyValue,
4-
logs::v1::{LogRecord, LogsData, ResourceLogs},
5-
};
2+
#[cfg(feature = "experimental_metadata_attributes")]
3+
use opentelemetry_proto::tonic::common::v1::KeyValue;
4+
use opentelemetry_proto::tonic::logs::v1::{LogRecord, LogsData, ResourceLogs};
65
use std::fs::File;
76

87
// Given two ResourceLogs, assert that they are equal except for the timestamps

0 commit comments

Comments
 (0)