message: Add a new devfile telemetry event
  This event tracks sample devfile downloads from Git.
diff: @@ -4,6 +4,7 @@ import { FormikValues, useFormikContext } from 'formik';
  import { useTranslation } from 'react-i18next';
  import { getGitService, ImportStrategy } from '@console/git-service/src';
  import { InputField } from '@console/shared/src';
  +import { useTelemetry } from '@console/shared/src/hooks/useTelemetry';
  import { safeYAMLToJS } from '@console/shared/src/utils/yaml';
  import FormSection from '../section/FormSection';
  import { useDevfileServer, useDevfileSource, useSelectedDevfileSample } from './devfileHooks';
  @@ -13,6 +14,8 @@ import './DevfileStrategySection.scss';
  const DevfileStrategySection: React.FC = () => {
  const { t } = useTranslation();
  const { values, setFieldValue, setFieldTouched } = useFormikContext<FormikValues>();
  + const ODC_TELEMETRY_CLIENT_NAME = 'openshift-console';
  + const fireTelemetryEvent = useTelemetry();
  const {
  import: { showEditImportStrategy, strategies, recommendedStrategy },
  git: { url, type, ref, dir, secretResource },
  @@ -47,11 +50,25 @@ const DevfileStrategySection: React.FC = () => {
  setFieldValue('devfile.devfileHasError', true);
  setValidated(ValidatedOptions.error);
  } else {
  + fireTelemetryEvent('Download Devfile from Git', {
  + client: ODC_TELEMETRY_CLIENT_NAME,
  + devfileName: selectedSample.name,
  + });
  setFieldValue('devfile.devfileContent', devfileContents);
  setFieldValue('devfile.devfileHasError', false);
  setValidated(ValidatedOptions.success);
  }
  - }, [devfile.devfilePath, dir, ref, secretResource, setFieldValue, type, url]);
  + }, [
  + devfile,
  + dir,
  + fireTelemetryEvent,
  + ref,
  + secretResource,
  + selectedSample,
  + setFieldValue,
  + type,
  + url,
  + ]);
  const helpText = React.useMemo(() => {
  if (validated === ValidatedOptions.success) {
  