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');
const commandPaletteActionSelected = (action: Action) => {
reportInteraction('commandPalette_action_selected', {
reportInteraction('command_palette_action_selected', {
actionId: action.id,
actionName: action.name,
});

View File

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

View File

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

View File

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