Skip to content

Commit 43f5967

Browse files
committed
chore:fix few nit build warnings
1 parent d32d34c commit 43f5967

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-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

+1-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
use anyhow::Result;
2-
use opentelemetry_proto::tonic::{
3-
common::v1::KeyValue,
4-
logs::v1::{LogRecord, LogsData, ResourceLogs},
5-
};
2+
use opentelemetry_proto::tonic::logs::v1::{LogRecord, LogsData, ResourceLogs};
63
use std::fs::File;
74

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

0 commit comments

Comments
 (0)