Skip to content

Commit 9340223

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent ef0ec37 commit 9340223

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

x-pack/plugin/otel-data/src/main/java/org/elasticsearch/xpack/oteldata/otlp/datapoint/DataPointGroupingContext.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ public void groupDataPoints(ExportMetricsServiceRequest exportMetricsServiceRequ
101101
* @throws E if the consumer throws an exception
102102
*/
103103
public <E extends Exception> void consume(CheckedConsumer<DataPointGroup, E> consumer) throws E {
104-
for (Iterator<ResourceGroup> iterator = resourceGroups.values().iterator(); iterator.hasNext(); ) {
104+
for (Iterator<ResourceGroup> iterator = resourceGroups.values().iterator(); iterator.hasNext();) {
105105
ResourceGroup resourceGroup = iterator.next();
106106
// Remove the resource group from the map can help to significantly reduce GC overhead.
107107
// This avoids that the resource groups are promoted to survivor space when the context is kept alive for a while,

x-pack/plugin/otel-data/src/main/java/org/elasticsearch/xpack/oteldata/otlp/docbuilder/MetricDocumentBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
import com.google.protobuf.ByteString;
1616

1717
import org.elasticsearch.xcontent.XContentBuilder;
18-
import org.elasticsearch.xpack.oteldata.otlp.proto.BufferedByteStringAccessor;
19-
import org.elasticsearch.xpack.oteldata.otlp.datapoint.TargetIndex;
2018
import org.elasticsearch.xpack.oteldata.otlp.datapoint.DataPoint;
2119
import org.elasticsearch.xpack.oteldata.otlp.datapoint.DataPointGroupingContext;
20+
import org.elasticsearch.xpack.oteldata.otlp.datapoint.TargetIndex;
21+
import org.elasticsearch.xpack.oteldata.otlp.proto.BufferedByteStringAccessor;
2222

2323
import java.io.IOException;
2424
import java.util.HashMap;

x-pack/plugin/otel-data/src/main/java/org/elasticsearch/xpack/oteldata/otlp/tsid/AttributeListTsidFunnel.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212

1313
import org.elasticsearch.cluster.routing.TsidBuilder;
1414
import org.elasticsearch.cluster.routing.TsidBuilder.TsidFunnel;
15+
import org.elasticsearch.xpack.oteldata.otlp.datapoint.TargetIndex;
1516
import org.elasticsearch.xpack.oteldata.otlp.docbuilder.MappingHints;
1617
import org.elasticsearch.xpack.oteldata.otlp.proto.BufferedByteStringAccessor;
17-
import org.elasticsearch.xpack.oteldata.otlp.datapoint.TargetIndex;
1818

1919
import java.util.List;
2020

@@ -63,10 +63,7 @@ private void hashValue(TsidBuilder tsidBuilder, String key, AnyValue value) {
6363
tsidBuilder.addLongDimension(key, value.getIntValue());
6464
break;
6565
case KVLIST_VALUE:
66-
tsidBuilder.add(
67-
value.getKvlistValue().getValuesList(),
68-
AttributeListTsidFunnel.get(byteStringAccessor, key + ".")
69-
);
66+
tsidBuilder.add(value.getKvlistValue().getValuesList(), AttributeListTsidFunnel.get(byteStringAccessor, key + "."));
7067
break;
7168
case ARRAY_VALUE:
7269
List<AnyValue> valuesList = value.getArrayValue().getValuesList();

0 commit comments

Comments
 (0)