Skip to content

Commit 5140d98

Browse files
committed
fix some typos
Signed-off-by: cui fliter <[email protected]>
1 parent dc66566 commit 5140d98

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

STYLE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ would know that the queue size was _currently_ zero but we'd also know that we j
229229
[Component
230230
Specification](https://github.com/vectordotdev/vector/blob/master/docs/specs/component.md).
231231
- **Don't** emit metrics in tight loops. Each metric emission carries an overhead, and emitting them
232-
in tight loops can cause that overhead to become noticable in terms of CPU usage and throughput
232+
in tight loops can cause that overhead to become noticeable in terms of CPU usage and throughput
233233
reduction. Instead of incrementing a counter every time a loop iteration occurs, you might
234234
consider incrementing a local variable instead, and then emitting that sum after the loop is over.
235235
- **Don't** update a counter to measure the total number of operations/events/etc if you're already

docs/tutorials/sinks/1_basic_sink.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ emit the event. Change the body of `run_inner` to look like the following:
273273

274274
## EventSent
275275

276-
[`EventSent`][events_sent] is emmitted by each component in Vector to
276+
[`EventSent`][events_sent] is emitted by each component in Vector to
277277
instrument how many bytes have been sent to the next downstream component.
278278

279279
Add the following after emitting `BytesSent`:

lib/codecs/src/decoding/format/gelf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ use crate::{gelf_fields::*, VALID_FIELD_REGEX};
2222

2323
/// On GELF decoding behavior:
2424
/// Graylog has a relaxed decoding. They are much more lenient than the spec would
25-
/// suggest. We've elected to take a more strict approach to maintain backwards compatability
25+
/// suggest. We've elected to take a more strict approach to maintain backwards compatibility
2626
/// in the event that we need to change the behavior to be more relaxed, so that prior versions
2727
/// of vector will still work with the new relaxed decoding.
2828

lib/codecs/src/encoding/format/gelf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use vector_core::{
1616

1717
/// On GELF encoding behavior:
1818
/// Graylog has a relaxed parsing. They are much more lenient than the spec would
19-
/// suggest. We've elected to take a more strict approach to maintain backwards compatability
19+
/// suggest. We've elected to take a more strict approach to maintain backwards compatibility
2020
/// in the event that we need to change the behavior to be more relaxed, so that prior versions
2121
/// of vector will still work.
2222
/// The exception is that if 'Additional fields' are found to be missing an underscore prefix and

lib/vector-core/src/event/estimated_json_encoded_size_of.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ impl EstimatedJsonEncodedSizeOf for Value {
8787
/// need for UTF-8 replacement characters.
8888
///
8989
/// This is the main reason why `EstimatedJsonEncodedSizeOf` is named as is, as most other types can
90-
/// be calculated exactly without a noticable performance penalty.
90+
/// be calculated exactly without a noticeable performance penalty.
9191
impl EstimatedJsonEncodedSizeOf for str {
9292
fn estimated_json_encoded_size_of(&self) -> JsonSize {
9393
JsonSize::new(QUOTES_SIZE + self.len())

rfcs/2021-07-27-7117-vrl-string-interpolation.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# RFC 7117 - 2021-07-27 - VRL string interpolation
22

33
VRL needs a better way to format strings. Currently the only way to do this is
4-
to concatenate strings, which can get unwieldly.
4+
to concatenate strings, which can get unwieldy.
55

66
## Scope
77

@@ -13,7 +13,7 @@ literals, also known as string interpolation, to format strings.
1313
Currently the way to create strings is through either string concatenation or
1414
the `join` function.
1515

16-
Syntactically this is unwieldly. It requires extra key presses and the code
16+
Syntactically this is unwieldy. It requires extra key presses and the code
1717
created doesn't necessarily give an instant idea of what the resulting string
1818
will look like. Thus the true intent behind the code is obfuscated, which can
1919
result in bugs.

rfcs/2022-03-15-11851-ingest-opentelemetry-traces.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ universal representation, there is two major possible approaches:
156156
certain degree of flexibility.
157157

158158
The second option would have to provide a way to store, at least, all fields from both Opentelemetry and Datadog Traces.
159-
If we consider the protobuf definiton for both Datadog and OpenTelemetry, it is clear that the OpenTelemetry from come
159+
If we consider the protobuf definition for both Datadog and OpenTelemetry, it is clear that the OpenTelemetry from come
160160
with extra structured fields that are not present in Datadog traces. However having a generic key/value container in
161161
virtually all traces formats can be used to store data that do not have a dedicated field in some format. As a reflexion
162162
basis the Datadog and OpenTelemetry are provided below, there is no hard semantic differences.

0 commit comments

Comments
 (0)