diff --git a/docs/src/main/asciidoc/howto.adoc b/docs/src/main/asciidoc/howto.adoc index a50a182..4fbb857 100644 --- a/docs/src/main/asciidoc/howto.adoc +++ b/docs/src/main/asciidoc/howto.adoc @@ -165,8 +165,8 @@ The modification will not be available for timers created by `DefaultMeterObserv ---- @Bean public ObservationFilter observationFilter() { + String tagKey = String.format(QueryHighCardinalityKeyNames.QUERY.asString(), 0); // There might be multiple queries, only modify the first return (context) -> { - String tagKey = QueryHighCardinalityKeyNames.QUERY.name(); KeyValue tag = context.getHighCardinalityKeyValue(tagKey); if(tag != null) { String query = tag.getValue();