Skip to content

Commit

Permalink
Fix autocomplete telemetry (#95724)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <[email protected]>
  • Loading branch information
lukasolson and kibanamachine authored Apr 2, 2021
1 parent 8fef5fd commit 59100b5
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,14 +379,12 @@ export default class QueryStringInputUI extends Component<Props, State> {
const newQueryString = value.substr(0, start) + text + value.substr(end);

this.reportUiCounter?.(
METRIC_TYPE.LOADED,
`query_string:${type}:suggestions_select_position`,
listIndex
METRIC_TYPE.CLICK,
`query_string:${type}:suggestions_select_position_${listIndex}`
);
this.reportUiCounter?.(
METRIC_TYPE.LOADED,
`query_string:${type}:suggestions_select_q_length`,
end - start
METRIC_TYPE.CLICK,
`query_string:${type}:suggestions_select_q_length_${end - start}`
);

this.onQueryStringChange(newQueryString);
Expand Down

0 comments on commit 59100b5

Please sign in to comment.