Skip to content

Commit fdb0837

Browse files
fhackenbergerttddyy
authored andcommitted
Update howto.adoc with new query tag key
The documented way does not work with version 1.0.3
1 parent e1d9a6e commit fdb0837

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/main/asciidoc/howto.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,8 @@ The modification will not be available for timers created by `DefaultMeterObserv
165165
----
166166
@Bean
167167
public ObservationFilter observationFilter() {
168+
String tagKey = String.format(QueryHighCardinalityKeyNames.QUERY.asString(), 0); // There might be multiple queries, only modify the first
168169
return (context) -> {
169-
String tagKey = QueryHighCardinalityKeyNames.QUERY.name();
170170
KeyValue tag = context.getHighCardinalityKeyValue(tagKey);
171171
if(tag != null) {
172172
String query = tag.getValue();

0 commit comments

Comments
 (0)