Skip to content

Commit

Permalink
function name change
Browse files Browse the repository at this point in the history
  • Loading branch information
ApekshaBhosale committed Feb 19, 2025
1 parent bd200f8 commit 494eede
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ public class NoTagsMeterFilter implements MeterFilter {
@Override
public Meter.Id map(Meter.Id id) {
// Remove all tags from the metric
if (id.getName().startsWith("appsmith") && !startsWithAnyPrefix(id.getName())) {
if (id.getName().startsWith("appsmith") && !startsWithPrefix(id.getName())) {
return id.replaceTags(Tags.empty());
}
return id;
}

private boolean startsWithAnyPrefix(String metricName) {
private boolean startsWithPrefix(String metricName) {
for (String prefix : seriesExceptionList) {
if (metricName.startsWith(prefix)) {
return true;
Expand Down

0 comments on commit 494eede

Please sign in to comment.