Explore: Remove camel case from tracking labels (#56809)

* refactor: remove camel case from tracking labels

* refactor: remove camel case from tracking labels
This commit is contained in:
Laura Benz 2022-10-13 12:12:50 +02:00 committed by GitHub
parent efe214a293
commit b71e08ad59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 6 deletions

View File

@ -105,7 +105,7 @@ export class AppWrapper extends React.Component<AppWrapperProps, AppWrapperState
navigationLogger('AppWrapper', false, 'rendering'); navigationLogger('AppWrapper', false, 'rendering');
const commandPaletteActionSelected = (action: Action) => { const commandPaletteActionSelected = (action: Action) => {
reportInteraction('commandPalette_action_selected', { reportInteraction('command_palette_action_selected', {
actionId: action.id, actionId: action.id,
actionName: action.name, actionName: action.name,
}); });

View File

@ -55,7 +55,7 @@ export const CommandPalette = () => {
useEffect(() => { useEffect(() => {
if (showing) { if (showing) {
reportInteraction('commandPalette_opened'); reportInteraction('command_palette_opened');
// Do dashboard search on demand // Do dashboard search on demand
getDashboardNavActions('go/dashboard').then((dashAct) => { getDashboardNavActions('go/dashboard').then((dashAct) => {

View File

@ -97,7 +97,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => {
setSubmissionError(undefined); setSubmissionError(undefined);
const dashboardUid = data.saveTarget === SaveTarget.ExistingDashboard ? data.dashboardUid : undefined; const dashboardUid = data.saveTarget === SaveTarget.ExistingDashboard ? data.dashboardUid : undefined;
reportInteraction('e2d_submit', { reportInteraction('e_2_d_submit', {
newTab: openInNewTab, newTab: openInNewTab,
saveTarget: data.saveTarget, saveTarget: data.saveTarget,
queries: exploreItem.queries.length, queries: exploreItem.queries.length,
@ -144,7 +144,7 @@ export const AddToDashboardModal = ({ onClose, exploreId }: Props) => {
}; };
useEffect(() => { useEffect(() => {
reportInteraction('e2d_open'); reportInteraction('e_2_d_open');
}, []); }, []);
return ( return (

View File

@ -77,13 +77,13 @@ class UnConnectedExploreToolbar extends PureComponent<Props> {
onOpenSplitView = () => { onOpenSplitView = () => {
const { split } = this.props; const { split } = this.props;
split(); split();
reportInteraction('grafana_explore_splitView_opened'); reportInteraction('grafana_explore_split_view_opened');
}; };
onCloseSplitView = () => { onCloseSplitView = () => {
const { closeSplit, exploreId } = this.props; const { closeSplit, exploreId } = this.props;
closeSplit(exploreId); closeSplit(exploreId);
reportInteraction('grafana_explore_splitView_closed'); reportInteraction('grafana_explore_split_view_closed');
}; };
renderRefreshPicker = (showSmallTimePicker: boolean) => { renderRefreshPicker = (showSmallTimePicker: boolean) => {