Skip to content

Commit

Permalink
chore(flags): rm webhook analytic (#80686)
Browse files Browse the repository at this point in the history
we won't be generating webhook URLs anymore.
  • Loading branch information
michellewzhang authored Nov 13, 2024
1 parent ee7a34a commit 4a43dfa
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import OrganizationStore from 'sentry/stores/organizationStore';
import {useLegacyStore} from 'sentry/stores/useLegacyStore';
import {space} from 'sentry/styles/space';
import {defined} from 'sentry/utils';
import {trackAnalytics} from 'sentry/utils/analytics';
import useApi from 'sentry/utils/useApi';

export type ChildrenProps<T> = {
Expand Down Expand Up @@ -123,8 +122,6 @@ export function SetupIntegrationModal<T extends Data>({
url: `https://sentry.io/api/0/organizations/${organization?.slug}/flags/hooks/provider/${provider}/token/${encodedToken}/`,
};
});

trackAnalytics('flags.webhook_url_generated', {organization});
}, [createToken, organization, state.provider]);

const providers = ['LaunchDarkly'];
Expand Down
2 changes: 0 additions & 2 deletions static/app/utils/analytics/featureFlagAnalyticsEvents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export type FeatureFlagEventParameters = {
numFlags: number;
};
'flags.view-all-clicked': {};
'flags.webhook_url_generated': {};
};

export type FeatureFlagEventKey = keyof FeatureFlagEventParameters;
Expand All @@ -20,6 +19,5 @@ export const featureFlagEventMap: Record<FeatureFlagEventKey, string | null> = {
'flags.sort_flags': 'Sorted Flags',
'flags.event_and_suspect_flags_found': 'Number of Event and Suspect Flags',
'flags.setup_modal_opened': 'Flag Setup Integration Modal Opened',
'flags.webhook_url_generated': 'Flag Webhook URL Generated in Setup Integration Modal',
'flags.table_rendered': 'Flag Table Rendered',
};

0 comments on commit 4a43dfa

Please sign in to comment.