Skip to content

Commit cb7fb38

Browse files
authored
standardize the spelling of "exemplars" (#7612)
1 parent c6775b5 commit cb7fb38

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

sdk/metrics/src/jmh/java/io/opentelemetry/sdk/metrics/internal/aggregator/HistogramCollectBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void setup() {
7575
// Effectively disable periodic reading so reading is only done on #flush()
7676
.setInterval(Duration.ofSeconds(Integer.MAX_VALUE))
7777
.build());
78-
// Disable examplars
78+
// Disable exemplars
7979
SdkMeterProviderUtil.setExemplarFilter(builder, ExemplarFilter.alwaysOff());
8080
sdkMeterProvider = builder.build();
8181
histogram = sdkMeterProvider.get("meter").histogramBuilder("histogram").build();

sdk/metrics/src/jmhBasedTest/java/io/opentelemetry/sdk/metrics/internal/state/InstrumentGarbageCollectionBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public void setup() {
9595

9696
attributesList = AttributesGenerator.generate(cardinality);
9797

98-
// Disable examplars
98+
// Disable exemplars
9999
SdkMeterProviderUtil.setExemplarFilter(builder, ExemplarFilter.alwaysOff());
100100

101101
sdkMeterProvider = builder.build();

sdk/metrics/src/test/java/io/opentelemetry/sdk/metrics/internal/aggregator/DoubleLastValueAggregatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ void copyPoint(MemoryMode memoryMode) {
186186
MutableDoublePointData pointData = (MutableDoublePointData) aggregator.createReusablePoint();
187187

188188
Attributes attributes = Attributes.of(AttributeKey.longKey("test"), 100L);
189-
List<DoubleExemplarData> examplarsFrom =
189+
List<DoubleExemplarData> exemplarsFrom =
190190
Collections.singletonList(
191191
ImmutableDoubleExemplarData.create(
192192
attributes,
@@ -197,12 +197,12 @@ void copyPoint(MemoryMode memoryMode) {
197197
TraceFlags.getDefault(),
198198
TraceState.getDefault()),
199199
1));
200-
pointData.set(0, 1, attributes, 2000, examplarsFrom);
200+
pointData.set(0, 1, attributes, 2000, exemplarsFrom);
201201

202202
MutableDoublePointData toPointData = (MutableDoublePointData) aggregator.createReusablePoint();
203203

204204
Attributes toAttributes = Attributes.of(AttributeKey.longKey("test"), 100L);
205-
List<DoubleExemplarData> examplarsTo =
205+
List<DoubleExemplarData> exemplarsTo =
206206
Collections.singletonList(
207207
ImmutableDoubleExemplarData.create(
208208
attributes,
@@ -213,7 +213,7 @@ void copyPoint(MemoryMode memoryMode) {
213213
TraceFlags.getDefault(),
214214
TraceState.getDefault()),
215215
2));
216-
toPointData.set(0, 2, toAttributes, 4000, examplarsTo);
216+
toPointData.set(0, 2, toAttributes, 4000, exemplarsTo);
217217

218218
aggregator.copyPoint(pointData, toPointData);
219219

sdk/metrics/src/test/java/io/opentelemetry/sdk/metrics/internal/aggregator/DoubleSumAggregatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ void copyPoint(MemoryMode memoryMode) {
263263
MutableDoublePointData pointData = (MutableDoublePointData) aggregator.createReusablePoint();
264264

265265
Attributes attributes = Attributes.of(AttributeKey.longKey("test"), 100L);
266-
List<DoubleExemplarData> examplarsFrom =
266+
List<DoubleExemplarData> exemplarsFrom =
267267
Collections.singletonList(
268268
ImmutableDoubleExemplarData.create(
269269
attributes,
@@ -274,12 +274,12 @@ void copyPoint(MemoryMode memoryMode) {
274274
TraceFlags.getDefault(),
275275
TraceState.getDefault()),
276276
1));
277-
pointData.set(0, 1, attributes, 2000, examplarsFrom);
277+
pointData.set(0, 1, attributes, 2000, exemplarsFrom);
278278

279279
MutableDoublePointData toPointData = (MutableDoublePointData) aggregator.createReusablePoint();
280280

281281
Attributes toAttributes = Attributes.of(AttributeKey.longKey("test"), 100L);
282-
List<DoubleExemplarData> examplarsTo =
282+
List<DoubleExemplarData> exemplarsTo =
283283
Collections.singletonList(
284284
ImmutableDoubleExemplarData.create(
285285
attributes,
@@ -290,7 +290,7 @@ void copyPoint(MemoryMode memoryMode) {
290290
TraceFlags.getDefault(),
291291
TraceState.getDefault()),
292292
2));
293-
toPointData.set(0, 2, toAttributes, 4000, examplarsTo);
293+
toPointData.set(0, 2, toAttributes, 4000, exemplarsTo);
294294

295295
aggregator.copyPoint(pointData, toPointData);
296296

sdk/metrics/src/test/java/io/opentelemetry/sdk/metrics/internal/aggregator/LongLastValueAggregatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void copyPoint(MemoryMode memoryMode) {
146146
MutableLongPointData pointData = (MutableLongPointData) aggregator.createReusablePoint();
147147

148148
Attributes attributes = Attributes.of(AttributeKey.longKey("test"), 100L);
149-
List<LongExemplarData> examplarsFrom =
149+
List<LongExemplarData> exemplarsFrom =
150150
Collections.singletonList(
151151
ImmutableLongExemplarData.create(
152152
attributes,
@@ -157,12 +157,12 @@ void copyPoint(MemoryMode memoryMode) {
157157
TraceFlags.getDefault(),
158158
TraceState.getDefault()),
159159
1));
160-
pointData.set(0, 1, attributes, 2000, examplarsFrom);
160+
pointData.set(0, 1, attributes, 2000, exemplarsFrom);
161161

162162
MutableLongPointData toPointData = (MutableLongPointData) aggregator.createReusablePoint();
163163

164164
Attributes toAttributes = Attributes.of(AttributeKey.longKey("test"), 100L);
165-
List<LongExemplarData> examplarsTo =
165+
List<LongExemplarData> exemplarsTo =
166166
Collections.singletonList(
167167
ImmutableLongExemplarData.create(
168168
attributes,
@@ -173,7 +173,7 @@ void copyPoint(MemoryMode memoryMode) {
173173
TraceFlags.getDefault(),
174174
TraceState.getDefault()),
175175
2));
176-
toPointData.set(0, 2, toAttributes, 4000, examplarsTo);
176+
toPointData.set(0, 2, toAttributes, 4000, exemplarsTo);
177177

178178
aggregator.copyPoint(pointData, toPointData);
179179

sdk/metrics/src/test/java/io/opentelemetry/sdk/metrics/internal/aggregator/LongSumAggregatorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void copyPoint(MemoryMode memoryMode) {
257257
MutableLongPointData pointData = (MutableLongPointData) aggregator.createReusablePoint();
258258

259259
Attributes attributes = Attributes.of(AttributeKey.longKey("test"), 100L);
260-
List<LongExemplarData> examplarsFrom =
260+
List<LongExemplarData> exemplarsFrom =
261261
Collections.singletonList(
262262
ImmutableLongExemplarData.create(
263263
attributes,
@@ -268,12 +268,12 @@ void copyPoint(MemoryMode memoryMode) {
268268
TraceFlags.getDefault(),
269269
TraceState.getDefault()),
270270
1));
271-
pointData.set(0, 1, attributes, 2000, examplarsFrom);
271+
pointData.set(0, 1, attributes, 2000, exemplarsFrom);
272272

273273
MutableLongPointData toPointData = (MutableLongPointData) aggregator.createReusablePoint();
274274

275275
Attributes toAttributes = Attributes.of(AttributeKey.longKey("test"), 100L);
276-
List<LongExemplarData> examplarsTo =
276+
List<LongExemplarData> exemplarsTo =
277277
Collections.singletonList(
278278
ImmutableLongExemplarData.create(
279279
attributes,
@@ -284,7 +284,7 @@ void copyPoint(MemoryMode memoryMode) {
284284
TraceFlags.getDefault(),
285285
TraceState.getDefault()),
286286
2));
287-
toPointData.set(0, 2, toAttributes, 4000, examplarsTo);
287+
toPointData.set(0, 2, toAttributes, 4000, exemplarsTo);
288288

289289
aggregator.copyPoint(pointData, toPointData);
290290

0 commit comments

Comments
 (0)