Skip to content

Commit

Permalink
add telemetry for fix action (#104832)
Browse files Browse the repository at this point in the history
  • Loading branch information
flash1293 authored Jul 8, 2021
1 parent 60a9eb9 commit 4dae939
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ export const VisualizationWrapper = ({
<EuiButton
data-test-subj="errorFixAction"
onClick={async () => {
trackUiEvent('error_fix_action');
const newState = await validationError.fixAction?.newState(framePublicAPI);
dispatchLens(
updateDatasourceState({
Expand Down
7 changes: 7 additions & 0 deletions x-pack/plugins/lens/server/usage/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ const eventsSchema: MakeSchemaFrom<LensUsage['events_30_days']> = {
type: 'long',
_meta: { description: 'Number of times the user opened one of the in-product help popovers.' },
},
error_fix_action: {
type: 'long',
_meta: {
description:
'Number of times the user used the fix action of an error displayed in the workspace.',
},
},
open_formula_popover: {
type: 'long',
_meta: { description: 'Number of times the user opened the in-product formula help popover.' },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2280,6 +2280,13 @@
"description": "Number of times the user opened one of the in-product help popovers."
}
},
"error_fix_action": {
"type": "long",
"_meta": {
"description":
"Number of times the user used the fix action of an error displayed in the workspace."
}
},
"open_formula_popover": {
"type": "long",
"_meta": {
Expand Down Expand Up @@ -2521,6 +2528,13 @@
"description": "Number of times the user opened one of the in-product help popovers."
}
},
"error_fix_action": {
"type": "long",
"_meta": {
"description":
"Number of times the user used the fix action of an error displayed in the workspace."
}
},
"open_formula_popover": {
"type": "long",
"_meta": {
Expand Down

0 comments on commit 4dae939

Please sign in to comment.