Skip to content

Commit fec9f0a

Browse files
authored
Fixed typos (#1207)
Signed-off-by: dhoard <doug.hoard@gmail.com>
1 parent 7cea8e4 commit fec9f0a

File tree

9 files changed

+18
-18
lines changed

9 files changed

+18
-18
lines changed

collector/src/main/java/io/prometheus/jmx/JmxCollector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ static class Receiver implements JmxScraper.MBeanReceiver {
581581
this.stalenessTracker = stalenessTracker;
582582
}
583583

584-
// [] and () are special in regexes, so swtich to <>.
584+
// [] and () are special in regexes, so switch to <>.
585585
private String angleBrackets(String s) {
586586
return "<" + s.substring(1, s.length() - 1) + ">";
587587
}

collector/src/main/java/io/prometheus/jmx/JmxScraper.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -438,18 +438,18 @@ private void processBeanValue(
438438
attrKeys = new LinkedList<>(attrKeys);
439439
attrKeys.add(attrName);
440440
for (String key : type.keySet()) {
441-
String typ = type.getType(key).getTypeName();
442-
Object valu = composite.get(key);
441+
String typeName = type.getType(key).getTypeName();
442+
Object compositeValue = composite.get(key);
443443
processBeanValue(
444444
objectName,
445445
domain,
446446
beanProperties,
447447
attributesAsLabelsWithValues,
448448
attrKeys,
449449
key,
450-
typ,
450+
typeName,
451451
type.getDescription(),
452-
valu);
452+
compositeValue);
453453
}
454454
} else if (value instanceof TabularData) {
455455
// I don't pretend to have a good understanding of TabularData.
@@ -469,9 +469,9 @@ private void processBeanValue(
469469

470470
LinkedList<String> extendedAttrKeys = new LinkedList<>(attrKeys);
471471
extendedAttrKeys.add(attrName);
472-
for (Object valu : tds.values()) {
473-
if (valu instanceof CompositeData) {
474-
CompositeData composite = (CompositeData) valu;
472+
for (Object compositeDataValue : tds.values()) {
473+
if (compositeDataValue instanceof CompositeData) {
474+
CompositeData composite = (CompositeData) compositeDataValue;
475475
LinkedHashMap<String, String> l2s = new LinkedHashMap<>(beanProperties);
476476
for (String idx : rowKeys) {
477477
Object obj = composite.get(idx);
@@ -500,7 +500,7 @@ private void processBeanValue(
500500
}
501501
for (String valueIdx : valueKeys) {
502502
LinkedList<String> attrNames = extendedAttrKeys;
503-
String typ = type.getType(valueIdx).getTypeName();
503+
String typeName = type.getType(valueIdx).getTypeName();
504504
String name = valueIdx;
505505
if (valueIdx.equalsIgnoreCase("value")) {
506506
// Skip appending 'value' to the name
@@ -514,7 +514,7 @@ private void processBeanValue(
514514
attributesAsLabelsWithValues,
515515
attrNames,
516516
name,
517-
typ,
517+
typeName,
518518
type.getDescription(),
519519
composite.get(valueIdx));
520520
}

collector/src/main/java/io/prometheus/jmx/ObjectNameAttributeFilter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ private void initializeObjectNameAttributes(
118118
*/
119119
public void add(ObjectName objectName, String attributeName) {
120120
if (autoExcludeObjectNameAttributes) {
121-
Set<String> attribteNameSet =
121+
Set<String> attributeNameSet =
122122
dynamicExcludeObjectNameAttributesMap.computeIfAbsent(
123123
objectName, o -> Collections.synchronizedSet(new HashSet<>()));
124124

@@ -128,7 +128,7 @@ public void add(ObjectName objectName, String attributeName) {
128128
objectName.getCanonicalName(),
129129
attributeName);
130130

131-
attribteNameSet.add(attributeName);
131+
attributeNameSet.add(attributeName);
132132
}
133133
}
134134

docs/content/1.1.0/java-agent/combined-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pushes metrics to an OpenTelemetry endpoint.
2121

2222
**Notes**
2323

24-
- Due to the indepenent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
24+
- Due to the independent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
2525

2626
# Installation
2727

docs/content/1.1.0/standalone/combined-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pushes metrics to an OpenTelemetry endpoint.
2121

2222
**Notes**
2323

24-
- Due to the indepenent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
24+
- Due to the independent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
2525

2626
# Installation
2727

docs/content/1.2.0/java-agent/combined-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pushes metrics to an OpenTelemetry endpoint.
2121

2222
**Notes**
2323

24-
- Due to the indepenent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
24+
- Due to the independent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
2525

2626
# Installation
2727

docs/content/1.2.0/standalone/combined-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pushes metrics to an OpenTelemetry endpoint.
2121

2222
**Notes**
2323

24-
- Due to the indepenent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
24+
- Due to the independent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
2525

2626
# Installation
2727

docs/content/1.3.0/java-agent/combined-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pushes metrics to an OpenTelemetry endpoint.
2121

2222
**Notes**
2323

24-
- Due to the indepenent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
24+
- Due to the independent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
2525

2626
# Installation
2727

docs/content/1.3.0/standalone/combined-mode.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Pushes metrics to an OpenTelemetry endpoint.
2121

2222
**Notes**
2323

24-
- Due to the indepenent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
24+
- Due to the independent collection methods, HTTP mode metrics most likely will not match OpenTelemetry mode metrics exactly
2525

2626
# Installation
2727

0 commit comments

Comments
 (0)