Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
joanvr committed Aug 30, 2023
1 parent b2af788 commit cc8de74
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,15 +97,15 @@ else if (tagMatcher.matches(maybeBuilder)) {
parameters.add(builderMethod.getArguments().get(1));
}
else if (tagsIterableMatcher.matches(maybeBuilder)) {
builder.add("\n.highCardinalityKeyValue(KeyValues.of(#{any(Iterable)}, Tag::getKey, Tag::getValue))");
builder.add("\n.highCardinalityKeyValues(KeyValues.of(#{any(Iterable)}, Tag::getKey, Tag::getValue))");
parameters.addAll(builderMethod.getArguments());
maybeAddImport("io.micrometer.common.KeyValues");
maybeAddImport("io.micrometer.core.instrument.Tag");
}
else if (tagsMatcher.matches(maybeBuilder)) {
String args = StringUtils.repeat("#{any(String)},", builderMethod.getArguments().size());
args = args.substring(0, args.length() - 1);
builder.add("\n.highCardinalityKeyValue(KeyValues.of(" + args + "))");
builder.add("\n.highCardinalityKeyValues(KeyValues.of(" + args + "))");
parameters.addAll(builderMethod.getArguments());
maybeAddImport("io.micrometer.common.KeyValues");
}
Expand Down

0 comments on commit cc8de74

Please sign in to comment.