Skip to content

Commit bae29ec

Browse files
committed
Fix code example in docs
1 parent 40b7680 commit bae29ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/modules/ROOT/pages/concepts/meter-filters.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ too high cardinality and starts stressing your monitoring system or costing too
128128
new MeterFilter() {
129129
@Override
130130
public DistributionStatisticConfig configure(Meter.Id id, DistributionStatisticConfig config) {
131-
if (id.getName().startsWith(prefix)) {
131+
if (id.getName().startsWith("prefix")) {
132132
return DistributionStatisticConfig.builder()
133-
.publishPercentiles(0.9, 0.95)
133+
.percentiles(0.9, 0.95)
134134
.build()
135135
.merge(config);
136136
}

0 commit comments

Comments
 (0)