Skip to content

Commit

Permalink
Fix typos (#1828)
Browse files Browse the repository at this point in the history
Co-authored-by: Cijo Thomas <[email protected]>
  • Loading branch information
utpilla and cijothomas authored May 24, 2024
1 parent b1a80ee commit e699233
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion opentelemetry-jaeger-propagator/src/propagator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<TraceFlags, ()> {
if flag.len() > 2 {
return Err(());
Expand Down
12 changes: 6 additions & 6 deletions opentelemetry-sdk/benches/metric_counter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
],
);
});
Expand All @@ -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]),
],
);
});
Expand All @@ -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]),
],
);
});
Expand Down
4 changes: 2 additions & 2 deletions opentelemetry-sdk/benches/metric_gauge.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]),
],
);
});
Expand Down

0 comments on commit e699233

Please sign in to comment.