-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Conversation
@@ -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'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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'; |
There was a problem hiding this comment.
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', { |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
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', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's this doing?
Adds analytics items as discussed in: https://linear.app/getsentry/issue/AIML-242/autofix-add-analytics-events
Adds analytics items as discussed in: https://linear.app/getsentry/issue/AIML-242/autofix-add-analytics-events