From e699233bcc4e8e7e00d4963652538c4d7174f432 Mon Sep 17 00:00:00 2001 From: Utkarsh Umesan Pillai <66651184+utpilla@users.noreply.github.com> Date: Fri, 24 May 2024 14:44:21 -0700 Subject: [PATCH] Fix typos (#1828) Co-authored-by: Cijo Thomas --- opentelemetry-jaeger-propagator/src/propagator.rs | 2 +- opentelemetry-sdk/benches/metric_counter.rs | 12 ++++++------ opentelemetry-sdk/benches/metric_gauge.rs | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/opentelemetry-jaeger-propagator/src/propagator.rs b/opentelemetry-jaeger-propagator/src/propagator.rs index 4f5491d932..4dbd0b16fc 100644 --- a/opentelemetry-jaeger-propagator/src/propagator.rs +++ b/opentelemetry-jaeger-propagator/src/propagator.rs @@ -138,7 +138,7 @@ impl Propagator { /// First bit controls whether to sample /// Second bit controls whether it's a debug trace /// Third bit is not used. - /// Forth bit is firehose flag, which is not supported in OT now. + /// Fourth bit is firehose flag, which is not supported in OT now. fn extract_trace_flags(&self, flag: &str) -> Result { if flag.len() > 2 { return Err(()); diff --git a/opentelemetry-sdk/benches/metric_counter.rs b/opentelemetry-sdk/benches/metric_counter.rs index 8962daa125..d3b7bb1a65 100644 --- a/opentelemetry-sdk/benches/metric_counter.rs +++ b/opentelemetry-sdk/benches/metric_counter.rs @@ -66,14 +66,14 @@ fn counter_add(c: &mut Criterion) { let index_first_attribute = rands[0]; let index_second_attribute = rands[1]; let index_third_attribute = rands[2]; - let index_forth_attribute = rands[3]; + let index_fourth_attribute = rands[3]; counter.add( 1, &[ KeyValue::new("attribute1", attribute_values[index_first_attribute]), KeyValue::new("attribute2", attribute_values[index_second_attribute]), KeyValue::new("attribute3", attribute_values[index_third_attribute]), - KeyValue::new("attribute4", attribute_values[index_forth_attribute]), + KeyValue::new("attribute4", attribute_values[index_fourth_attribute]), ], ); }); @@ -94,14 +94,14 @@ fn counter_add(c: &mut Criterion) { let index_first_attribute = rands[0]; let index_second_attribute = rands[1]; let index_third_attribute = rands[2]; - let index_forth_attribute = rands[3]; + let index_fourth_attribute = rands[3]; counter.add( 1, &[ KeyValue::new("attribute2", attribute_values[index_second_attribute]), KeyValue::new("attribute3", attribute_values[index_third_attribute]), KeyValue::new("attribute1", attribute_values[index_first_attribute]), - KeyValue::new("attribute4", attribute_values[index_forth_attribute]), + KeyValue::new("attribute4", attribute_values[index_fourth_attribute]), ], ); }); @@ -126,14 +126,14 @@ fn counter_add(c: &mut Criterion) { let index_first_attribute = rands[0]; let index_second_attribute = rands[1]; let index_third_attribute = rands[2]; - let index_forth_attribute = rands[3]; + let index_fourth_attribute = rands[3]; counter.add( 1, &[ KeyValue::new("attribute1", attribute_values[index_first_attribute]), KeyValue::new("attribute2", attribute_values[index_second_attribute]), KeyValue::new("attribute3", attribute_values[index_third_attribute]), - KeyValue::new("attribute4", attribute_values[index_forth_attribute]), + KeyValue::new("attribute4", attribute_values[index_fourth_attribute]), ], ); }); diff --git a/opentelemetry-sdk/benches/metric_gauge.rs b/opentelemetry-sdk/benches/metric_gauge.rs index 3217480760..e455c5a577 100644 --- a/opentelemetry-sdk/benches/metric_gauge.rs +++ b/opentelemetry-sdk/benches/metric_gauge.rs @@ -63,14 +63,14 @@ fn gauge_record(c: &mut Criterion) { let index_first_attribute = rands[0]; let index_second_attribute = rands[1]; let index_third_attribute = rands[2]; - let index_forth_attribute = rands[3]; + let index_fourth_attribute = rands[3]; gauge.record( 1, &[ KeyValue::new("attribute1", attribute_values[index_first_attribute]), KeyValue::new("attribute2", attribute_values[index_second_attribute]), KeyValue::new("attribute3", attribute_values[index_third_attribute]), - KeyValue::new("attribute4", attribute_values[index_forth_attribute]), + KeyValue::new("attribute4", attribute_values[index_fourth_attribute]), ], ); });