diff --git a/assets/recentActivity/index.ejs b/assets/recentActivity/index.ejs index 1f10c634c..2e79cbe8d 100644 --- a/assets/recentActivity/index.ejs +++ b/assets/recentActivity/index.ejs @@ -19,6 +19,7 @@ window.theme; window.mainFont; window.codeFont; + window.isJaegerEnabled; window.recentActivityRefreshInterval; window.recentActivityExpirationLimit; window.recentActivityDocumentationURL; diff --git a/src/components/InstallationWizard/index.tsx b/src/components/InstallationWizard/index.tsx index 1ba707f23..4ae55f299 100644 --- a/src/components/InstallationWizard/index.tsx +++ b/src/components/InstallationWizard/index.tsx @@ -1,5 +1,6 @@ import { useEffect, useState } from "react"; import { dispatcher } from "../../dispatcher"; +import { usePrevious } from "../../hooks/usePrevious"; import { getActions } from "../../utils/getActions"; import { actions as globalActions } from "../common/App"; import { Loader } from "../common/Loader"; @@ -23,6 +24,7 @@ const firstStep = window.wizardSkipInstallationStep === true ? 1 : 0; export const InstallationWizard = () => { const [currentStep, setCurrentStep] = useState(firstStep); + const previousStep = usePrevious(currentStep); const [isCollectorModified, setIsCollectorModified] = useState(false); const [isAlreadyUsingOtel, setIsAlreadyUsingOtel] = useState(false); @@ -30,6 +32,26 @@ export const InstallationWizard = () => { useState(); useEffect(() => { + if (previousStep === 0 && currentStep === 1) { + window.sendMessageToDigma({ + action: globalActions.sendTrackingEvent, + payload: { + event_name: "installation wizard install step passed" + } + }); + } + }, [previousStep, currentStep]); + + useEffect(() => { + if (firstStep === 1) { + window.sendMessageToDigma({ + action: globalActions.sendTrackingEvent, + payload: { + event_name: "installation wizard install step automatically passed" + } + }); + } + const handleConnectionCheckResultData = (data: unknown) => { const result = (data as ConnectionCheckResultData).result; setConnectionCheckStatus(result); @@ -66,6 +88,13 @@ export const InstallationWizard = () => { url: "https://open.docker.com/extensions/marketplace?extensionId=digmaai/digma-docker-extension" } }); + window.sendMessageToDigma({ + action: globalActions.sendTrackingEvent, + payload: { + event_name: + "installation wizard get digma docker extension button clicked" + } + }); }; const handleContinueButtonClick = () => { @@ -107,7 +136,7 @@ export const InstallationWizard = () => { <> Install Digma Docker Extension - (You’ll need{" "} + (You'll need{" "} { backend: - (You’ll need{" "} + (You'll need{" "} {