Skip to content

Commit db312b0

Browse files
committed
Fix typos
1 parent ac741c2 commit db312b0

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

opentelemetry-jaeger-propagator/src/propagator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ impl Propagator {
138138
/// First bit controls whether to sample
139139
/// Second bit controls whether it's a debug trace
140140
/// Third bit is not used.
141-
/// Forth bit is firehose flag, which is not supported in OT now.
141+
/// Fourth bit is firehose flag, which is not supported in OT now.
142142
fn extract_trace_flags(&self, flag: &str) -> Result<TraceFlags, ()> {
143143
if flag.len() > 2 {
144144
return Err(());

opentelemetry-sdk/benches/metric_counter.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ fn counter_add(c: &mut Criterion) {
6666
let index_first_attribute = rands[0];
6767
let index_second_attribute = rands[1];
6868
let index_third_attribute = rands[2];
69-
let index_forth_attribute = rands[3];
69+
let index_fourth_attribute = rands[3];
7070
counter.add(
7171
1,
7272
&[
7373
KeyValue::new("attribute1", attribute_values[index_first_attribute]),
7474
KeyValue::new("attribute2", attribute_values[index_second_attribute]),
7575
KeyValue::new("attribute3", attribute_values[index_third_attribute]),
76-
KeyValue::new("attribute4", attribute_values[index_forth_attribute]),
76+
KeyValue::new("attribute4", attribute_values[index_fourth_attribute]),
7777
],
7878
);
7979
});
@@ -94,14 +94,14 @@ fn counter_add(c: &mut Criterion) {
9494
let index_first_attribute = rands[0];
9595
let index_second_attribute = rands[1];
9696
let index_third_attribute = rands[2];
97-
let index_forth_attribute = rands[3];
97+
let index_fourth_attribute = rands[3];
9898
counter.add(
9999
1,
100100
&[
101101
KeyValue::new("attribute2", attribute_values[index_second_attribute]),
102102
KeyValue::new("attribute3", attribute_values[index_third_attribute]),
103103
KeyValue::new("attribute1", attribute_values[index_first_attribute]),
104-
KeyValue::new("attribute4", attribute_values[index_forth_attribute]),
104+
KeyValue::new("attribute4", attribute_values[index_fourth_attribute]),
105105
],
106106
);
107107
});
@@ -126,14 +126,14 @@ fn counter_add(c: &mut Criterion) {
126126
let index_first_attribute = rands[0];
127127
let index_second_attribute = rands[1];
128128
let index_third_attribute = rands[2];
129-
let index_forth_attribute = rands[3];
129+
let index_fourth_attribute = rands[3];
130130
counter.add(
131131
1,
132132
&[
133133
KeyValue::new("attribute1", attribute_values[index_first_attribute]),
134134
KeyValue::new("attribute2", attribute_values[index_second_attribute]),
135135
KeyValue::new("attribute3", attribute_values[index_third_attribute]),
136-
KeyValue::new("attribute4", attribute_values[index_forth_attribute]),
136+
KeyValue::new("attribute4", attribute_values[index_fourth_attribute]),
137137
],
138138
);
139139
});

opentelemetry-sdk/benches/metric_gauge.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ fn gauge_record(c: &mut Criterion) {
6363
let index_first_attribute = rands[0];
6464
let index_second_attribute = rands[1];
6565
let index_third_attribute = rands[2];
66-
let index_forth_attribute = rands[3];
66+
let index_fourth_attribute = rands[3];
6767
gauge.record(
6868
1,
6969
&[
7070
KeyValue::new("attribute1", attribute_values[index_first_attribute]),
7171
KeyValue::new("attribute2", attribute_values[index_second_attribute]),
7272
KeyValue::new("attribute3", attribute_values[index_third_attribute]),
73-
KeyValue::new("attribute4", attribute_values[index_forth_attribute]),
73+
KeyValue::new("attribute4", attribute_values[index_fourth_attribute]),
7474
],
7575
);
7676
});

0 commit comments

Comments
 (0)