Skip to content

feat(autofix): Add key analytics events #92533

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 30, 2025
Merged

Conversation

jennmueng
Copy link
Member

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 30, 2025
@jennmueng jennmueng marked this pull request as ready for review May 30, 2025 11:15
@jennmueng jennmueng requested a review from a team as a code owner May 30, 2025 11:15
@jennmueng jennmueng requested a review from roaga May 30, 2025 11:15
@@ -25,6 +25,7 @@ import LoadingIndicator from 'sentry/components/loadingIndicator';
import {IconClose} from 'sentry/icons';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {trackAnalytics} from 'sentry/utils/analytics';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like mistake?

@@ -16,6 +16,7 @@ import {useTypingAnimation} from 'sentry/components/events/autofix/useTypingAnim
import {IconChevron, IconClose} from 'sentry/icons';
import {t, tn} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {trackAnalytics} from 'sentry/utils/analytics';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also mistake?

@@ -26,6 +26,7 @@ import {Timeline} from 'sentry/components/timeline';
import {IconAdd, IconChat, IconFix} from 'sentry/icons';
import {t} from 'sentry/locale';
import {space} from 'sentry/styles/space';
import {trackAnalytics} from 'sentry/utils/analytics';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mistake?

)
);

trackAnalytics('autofix.solution.toggle_step', {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name should probably be more clear that this is disabling the agent's step vs deleting the human's own step

@@ -45,6 +45,8 @@ interface InsightCardObject {
id: string;
insight: string | null | undefined;
title: string;
copyAnalyticsEventKey?: string;
copyAnalyticsEventName?: string;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this doing?

@@ -175,6 +177,8 @@ function AutofixSummary({
},
copyTitle: t('Copy root cause as Markdown'),
copyText: rootCauseCopyText,
copyAnalyticsEventName: 'Autofix: Copy Root Cause as Markdown',
copyAnalyticsEventKey: 'autofix.root_cause.copy',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this doing?

@@ -200,6 +204,8 @@ function AutofixSummary({
},
copyTitle: t('Copy solution as Markdown'),
copyText: solutionCopyText,
copyAnalyticsEventName: 'Autofix: Copy Solution as Markdown',
copyAnalyticsEventKey: 'autofix.solution.copy',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this doing?

@jennmueng jennmueng merged commit b642c34 into master May 30, 2025
44 checks passed
@jennmueng jennmueng deleted the jenn/autofix/analytics branch May 30, 2025 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants