Skip to content

Commit 54b807f

Browse files
authored
Remove unnecessary features from command-line args (#1852)
1 parent 91c685f commit 54b807f

File tree

7 files changed

+22
-22
lines changed

7 files changed

+22
-22
lines changed

opentelemetry-sdk/benches/attribute_set.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use opentelemetry::KeyValue;
33
use opentelemetry_sdk::metrics::AttributeSet;
44

55
// Run this benchmark with:
6-
// cargo bench --bench attribute_set --features=metrics
6+
// cargo bench --bench attribute_set
77

88
fn criterion_benchmark(c: &mut Criterion) {
99
attribute_set(c);

opentelemetry-sdk/benches/log.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
//! run with `$ cargo bench --bench log --features=logs -- --exact <test_name>` to run specific test for logs
2-
//! So to run test named "full-log-with-attributes/with-context" you would run `$ cargo bench --bench log --features=logs -- --exact full-log-with-attributes/with-context`
3-
//! To run all tests for logs you would run `$ cargo bench --bench log --features=logs`
1+
//! run with `$ cargo bench --bench log -- --exact <test_name>` to run specific test for logs
2+
//! So to run test named "full-log-with-attributes/with-context" you would run `$ cargo bench --bench log -- --exact full-log-with-attributes/with-context`
3+
//! To run all tests for logs you would run `$ cargo bench --bench log`
44
//!
55
66
use std::collections::HashMap;

opentelemetry-sdk/benches/metric_counter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ thread_local! {
3030
}
3131

3232
// Run this benchmark with:
33-
// cargo bench --bench metric_counter --features=metrics
33+
// cargo bench --bench metric_counter
3434
fn create_counter() -> Counter<u64> {
3535
let meter_provider: SdkMeterProvider = SdkMeterProvider::builder()
3636
.with_reader(ManualReader::builder().build())

opentelemetry-sdk/src/logs/log_emitter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ mod tests {
512512

513513
#[test]
514514
fn global_shutdown_test() {
515-
// cargo test shutdown_test --features=logs
515+
// cargo test global_shutdown_test --features=testing
516516

517517
// Arrange
518518
let shutdown_called = Arc::new(Mutex::new(false));

opentelemetry-sdk/src/metrics/mod.rs

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ mod tests {
153153
use std::thread;
154154

155155
// Run all tests in this mod
156-
// cargo test metrics::tests --features=metrics,testing
156+
// cargo test metrics::tests --features=testing
157157
// Note for all tests from this point onwards in this mod:
158158
// "multi_thread" tokio flavor must be used else flush won't
159159
// be able to make progress!
@@ -190,49 +190,49 @@ mod tests {
190190
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
191191
async fn counter_aggregation_cumulative() {
192192
// Run this test with stdout enabled to see output.
193-
// cargo test counter_aggregation_cumulative --features=metrics,testing -- --nocapture
193+
// cargo test counter_aggregation_cumulative --features=testing -- --nocapture
194194
counter_aggregation_helper(Temporality::Cumulative);
195195
}
196196

197197
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
198198
async fn counter_aggregation_delta() {
199199
// Run this test with stdout enabled to see output.
200-
// cargo test counter_aggregation_delta --features=metrics,testing -- --nocapture
200+
// cargo test counter_aggregation_delta --features=testing -- --nocapture
201201
counter_aggregation_helper(Temporality::Delta);
202202
}
203203

204204
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
205205
async fn histogram_aggregation_cumulative() {
206206
// Run this test with stdout enabled to see output.
207-
// cargo test histogram_aggregation_cumulative --features=metrics,testing -- --nocapture
207+
// cargo test histogram_aggregation_cumulative --features=testing -- --nocapture
208208
histogram_aggregation_helper(Temporality::Cumulative);
209209
}
210210

211211
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
212212
async fn histogram_aggregation_delta() {
213213
// Run this test with stdout enabled to see output.
214-
// cargo test histogram_aggregation_delta --features=metrics,testing -- --nocapture
214+
// cargo test histogram_aggregation_delta --features=testing -- --nocapture
215215
histogram_aggregation_helper(Temporality::Delta);
216216
}
217217

218218
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
219219
async fn updown_counter_aggregation_cumulative() {
220220
// Run this test with stdout enabled to see output.
221-
// cargo test updown_counter_aggregation_cumulative --features=metrics,testing -- --nocapture
221+
// cargo test updown_counter_aggregation_cumulative --features=testing -- --nocapture
222222
updown_counter_aggregation_helper(Temporality::Cumulative);
223223
}
224224

225225
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
226226
async fn updown_counter_aggregation_delta() {
227227
// Run this test with stdout enabled to see output.
228-
// cargo test updown_counter_aggregation_delta --features=metrics,testing -- --nocapture
228+
// cargo test updown_counter_aggregation_delta --features=testing -- --nocapture
229229
updown_counter_aggregation_helper(Temporality::Delta);
230230
}
231231

232232
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
233233
async fn gauge_aggregation() {
234234
// Run this test with stdout enabled to see output.
235-
// cargo test gauge_aggregation --features=metrics,testing -- --nocapture
235+
// cargo test gauge_aggregation --features=testing -- --nocapture
236236

237237
// Gauge should use last value aggregation regardless of the aggregation temporality used.
238238
gauge_aggregation_helper(Temporality::Delta);
@@ -553,7 +553,7 @@ mod tests {
553553
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
554554
async fn histogram_aggregation_with_invalid_aggregation_should_proceed_as_if_view_not_exist() {
555555
// Run this test with stdout enabled to see output.
556-
// cargo test histogram_aggregation_with_invalid_aggregation_should_proceed_as_if_view_not_exist --features=metrics,testing -- --nocapture
556+
// cargo test histogram_aggregation_with_invalid_aggregation_should_proceed_as_if_view_not_exist --features=testing -- --nocapture
557557

558558
// Arrange
559559
let exporter = InMemoryMetricsExporter::default();
@@ -602,7 +602,7 @@ mod tests {
602602

603603
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
604604
async fn spatial_aggregation_when_view_drops_attributes_observable_counter() {
605-
// cargo test spatial_aggregation_when_view_drops_attributes_observable_counter --features=metrics,testing
605+
// cargo test spatial_aggregation_when_view_drops_attributes_observable_counter --features=testing
606606

607607
// Arrange
608608
let exporter = InMemoryMetricsExporter::default();
@@ -677,7 +677,7 @@ mod tests {
677677

678678
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
679679
async fn spatial_aggregation_when_view_drops_attributes_counter() {
680-
// cargo test spatial_aggregation_when_view_drops_attributes_counter --features=metrics,testing
680+
// cargo test spatial_aggregation_when_view_drops_attributes_counter --features=testing
681681

682682
// Arrange
683683
let exporter = InMemoryMetricsExporter::default();
@@ -754,7 +754,7 @@ mod tests {
754754
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
755755
async fn counter_aggregation_attribute_order() {
756756
// Run this test with stdout enabled to see output.
757-
// cargo test counter_aggregation_attribute_order --features=metrics,testing -- --nocapture
757+
// cargo test counter_aggregation_attribute_order --features=testing -- --nocapture
758758

759759
// Arrange
760760
let mut test_context = TestContext::new(Temporality::Delta);
@@ -987,7 +987,7 @@ mod tests {
987987
#[ignore = "Known bug: https://github.com/open-telemetry/opentelemetry-rust/issues/1598"]
988988
async fn delta_memory_efficiency_test() {
989989
// Run this test with stdout enabled to see output.
990-
// cargo test delta_memory_efficiency_test --features=metrics,testing -- --nocapture
990+
// cargo test delta_memory_efficiency_test --features=testing -- --nocapture
991991

992992
// Arrange
993993
let mut test_context = TestContext::new(Temporality::Delta);
@@ -1036,7 +1036,7 @@ mod tests {
10361036
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
10371037
async fn counter_multithreaded() {
10381038
// Run this test with stdout enabled to see output.
1039-
// cargo test counter_multithreaded --features=metrics,testing -- --nocapture
1039+
// cargo test counter_multithreaded --features=testing -- --nocapture
10401040

10411041
counter_multithreaded_aggregation_helper(Temporality::Delta);
10421042
counter_multithreaded_aggregation_helper(Temporality::Cumulative);

opentelemetry-sdk/src/trace/span_processor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ where
683683

684684
#[cfg(all(test, feature = "testing", feature = "trace"))]
685685
mod tests {
686-
// cargo test trace::span_processor::tests:: --features=trace,testing
686+
// cargo test trace::span_processor::tests:: --features=testing
687687
use super::{
688688
BatchSpanProcessor, SimpleSpanProcessor, SpanProcessor, OTEL_BSP_EXPORT_TIMEOUT,
689689
OTEL_BSP_MAX_EXPORT_BATCH_SIZE, OTEL_BSP_MAX_QUEUE_SIZE, OTEL_BSP_MAX_QUEUE_SIZE_DEFAULT,

opentelemetry/benches/metrics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use criterion::{criterion_group, criterion_main, Criterion};
22
use opentelemetry::{global, metrics::Counter, KeyValue};
33

44
// Run this benchmark with:
5-
// cargo bench --bench metrics --features=metrics
5+
// cargo bench --bench metrics
66

77
fn create_counter() -> Counter<u64> {
88
let meter = global::meter("benchmarks");

0 commit comments

Comments
 (0)