Skip to content

Commit 7f5d421

Browse files
committed
Fix compile error after merge
1 parent 8c4c621 commit 7f5d421

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,13 @@
2727
* In these cases, the behavior is undefined but does not lead to data loss.
2828
*/
2929
public record MappingHints(boolean aggregateMetricDouble, boolean docCount) {
30-
private static final String MAPPING_HINTS = "elasticsearch.mapping.hints";
31-
private static final MappingHints EMPTY = new MappingHints(false, false);
30+
31+
public static final String MAPPING_HINTS = "elasticsearch.mapping.hints";
3232
public static final String AGGREGATE_METRIC_DOUBLE = "aggregate_metric_double";
3333
public static final String DOC_COUNT = "_doc_count";
3434

35+
private static final MappingHints EMPTY = new MappingHints(false, false);
36+
3537
public static MappingHints fromAttributes(List<KeyValue> attributes) {
3638
boolean aggregateMetricDouble = false;
3739
boolean docCount = false;

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public void testExponentialHistogram() throws Exception {
214214
null,
215215
List.of(),
216216
"",
217-
"metrics-generic.otel-default"
217+
TargetIndex.defaultMetrics()
218218
);
219219
dataPointGroup.addDataPoint(
220220
Set.of(),
@@ -250,7 +250,7 @@ public void testExponentialHistogramAsAggregateMetricDouble() throws Exception {
250250
null,
251251
List.of(),
252252
"",
253-
"metrics-generic.otel-default"
253+
TargetIndex.defaultMetrics()
254254
);
255255
dataPointGroup.addDataPoint(
256256
Set.of(),
@@ -286,7 +286,7 @@ public void testHistogram() throws Exception {
286286
null,
287287
List.of(),
288288
"",
289-
"metrics-generic.otel-default"
289+
TargetIndex.defaultMetrics()
290290
);
291291
dataPointGroup.addDataPoint(
292292
Set.of(),
@@ -321,7 +321,7 @@ public void testHistogramAsAggregateMetricDouble() throws Exception {
321321
null,
322322
List.of(),
323323
"",
324-
"metrics-generic.otel-default"
324+
TargetIndex.defaultMetrics()
325325
);
326326
dataPointGroup.addDataPoint(
327327
Set.of(),

0 commit comments

Comments
 (0)