Skip to content

Commit e15984b

Browse files
committed
Fix some typos and reflow a comment
1 parent 49d439f commit e15984b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/ingest-ecs/src/main/java/org/elasticsearch/ingest/ecs/EcsNamespaceProcessor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public class EcsNamespaceProcessor extends AbstractProcessor {
5555
);
5656

5757
/**
58-
* A close-set of keys that should be kept at the top level of the processed document after applying the namespacing.
58+
* A closed-set of keys that should be kept at the top level of the processed document after applying the namespacing.
5959
* In essence, these are the fields that should not be moved to the "attributes" or "resource.attributes" namespaces.
6060
* Besides the @timestamp field, this set obviously contains the attributes and the resource fields, as well as the
6161
* OpenTelemetry-compatible fields that are renamed by the processor.
@@ -212,10 +212,10 @@ static boolean isOTelDocument(Map<String, Object> source) {
212212
*
213213
* <p>This method performs the following operations:
214214
* <ul>
215-
* <li>For each key in the {@code RENAME_KEYS} map, it checks if a corresponding field exists in the document. If first looks for the
215+
* <li>For each key in the {@code RENAME_KEYS} map, it checks if a corresponding field exists in the document. It first looks for the
216216
* field assuming dot notation for nested fields. If the field is not found, it looks for a top level field with a dotted name.</li>
217-
* <li>If the field exists, it removes if from the document and adds a new field with the corresponding name from the {@code
218-
* RENAME_KEYS} map and the same value.</li>
217+
* <li>If the field exists, it removes it from the document and adds a new field with the corresponding name from the
218+
* {@code RENAME_KEYS} map and the same value.</li>
219219
* <li>If the key is nested (contains dots), it recursively removes empty parent fields after renaming.</li>
220220
* </ul>
221221
*

0 commit comments

Comments
 (0)