Skip to content

Commit

Permalink
Fix autocomplete telemetry (#95724) (#96219)
Browse files Browse the repository at this point in the history
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
  • Loading branch information
lukasolson and kibanamachine committed Apr 5, 2021
1 parent d04dfad commit 34441e6
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,14 +360,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 34441e6

Please sign in to comment.