Skip to content
This repository was archived by the owner on Dec 23, 2023. It is now read-only.

Commit ff047ee

Browse files
authored
Fixes typo in attributes for trace benchmarks. (#1838)
1 parent e6c6aee commit ff047ee

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

benchmarks/src/jmh/java/io/opencensus/benchmarks/trace/BasicDataBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public void setup() {
6565
attributeKeys = new String[size];
6666
attributeMap = new HashMap<>(size);
6767
for (int i = 0; i < size; i++) {
68-
attributeKeys[i] = ATTRIBUTE_KEY + "-i";
68+
attributeKeys[i] = ATTRIBUTE_KEY + "-" + i;
6969
attributeMap.put(attributeKeys[i], attributeValues[i]);
7070
}
7171
}

benchmarks/src/jmh/java/io/opencensus/benchmarks/trace/SpanOperationsBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ public Span addLink(Data data) {
214214
private static AttributeValue[] createAttributeValues(int size) {
215215
AttributeValue[] attributeValues = new AttributeValue[size];
216216
for (int i = 0; i < size; i++) {
217-
attributeValues[i] = AttributeValue.stringAttributeValue(ATTRIBUTE_VALUE + "-i");
217+
attributeValues[i] = AttributeValue.stringAttributeValue(ATTRIBUTE_VALUE + "-" + i);
218218
}
219219
return attributeValues;
220220
}

0 commit comments

Comments
 (0)