diff --git a/docs/product/issues/issue-details/ai-suggested-solution/img/banner.png b/docs/product/issues/issue-details/ai-suggested-solution/img/banner.png deleted file mode 100644 index 96af64518c59b..0000000000000 Binary files a/docs/product/issues/issue-details/ai-suggested-solution/img/banner.png and /dev/null differ diff --git a/docs/product/issues/issue-details/ai-suggested-solution/img/disabling-feature.png b/docs/product/issues/issue-details/ai-suggested-solution/img/disabling-feature.png deleted file mode 100644 index fe1f17f705c88..0000000000000 Binary files a/docs/product/issues/issue-details/ai-suggested-solution/img/disabling-feature.png and /dev/null differ diff --git a/docs/product/issues/issue-details/ai-suggested-solution/img/solution.png b/docs/product/issues/issue-details/ai-suggested-solution/img/solution.png deleted file mode 100644 index 0c9dc1b3f4205..0000000000000 Binary files a/docs/product/issues/issue-details/ai-suggested-solution/img/solution.png and /dev/null differ diff --git a/docs/product/issues/issue-details/ai-suggested-solution/index.mdx b/docs/product/issues/issue-details/ai-suggested-solution/index.mdx deleted file mode 100644 index 246f334f7dde8..0000000000000 --- a/docs/product/issues/issue-details/ai-suggested-solution/index.mdx +++ /dev/null @@ -1,52 +0,0 @@ ---- -title: AI Suggested Solution -description: "Learn more about the AI integration to suggest a solution to an issue." -sidebar_order: 50 ---- - -AI Suggested Solution is an experimental feature that uses AI to explain an issue -and to propose a solution. To achieve this, the feature sends certain parts -of an error event to OpenAI for processing. - -You can find the feature below the breadcrumbs in the issue details page: - -![Suggested Solution Banner](./img/banner.png) - -Once you click on 'View Suggestion', Sentry will send information about the event to OpenAI for -analysis. After some period of waiting, a suggested solution will be produced and might look -something like this: - -![Example Solution](./img/solution.png) - -## Data Processing - -Under normal circumstances we do not send data to a third party -undisclosed in our [subprocessor list](https://sentry.io/legal/subprocessors/). -Because of this you need to provide consent to do so. If your organization has -signed a DPA with us, an owner of the organization will need to sign a -"OpenAI Subprocessor Acknowledgement" in the organization [Legal & Compliance -page](https://sentry.io/orgredirect/organizations/:orgslug/settings/legal/). Otherwise an individual -user will receive a prompt to confirm that data will be sent to a third party. - -Under all circumstance we will not send any event data to OpenAI without an -explicit instruction to do so. Only by clicking the "View Suggestion" button -will selected event data be shared with a third party. We send the following data from an event: - -- message -- platform -- exception type -- exception mechanism -- exception value -- exception stack trace - -This feature uses the OpenAI API and the event data shared via this feature will not be used to train their AI models. - -## Disabling the Feature - -If you don't find the feature useful and want to disable it for all users, you -can do so in your organization's settings. Also remember that if you have a -DPA signed with us, even if that toggle is enabled the feature won't be available -to users until a owner of the organization signed the "OpenAI Subprocessor -Acknowledgement". - -![Disabling Feature](./img/disabling-feature.png) diff --git a/docs/product/issues/issue-details/sentry-ai/img/autofix-qna.png b/docs/product/issues/issue-details/sentry-ai/img/autofix-qna.png new file mode 100644 index 0000000000000..f8c9a9a2a9179 Binary files /dev/null and b/docs/product/issues/issue-details/sentry-ai/img/autofix-qna.png differ diff --git a/docs/product/issues/issue-details/sentry-ai/img/autofix-results.png b/docs/product/issues/issue-details/sentry-ai/img/autofix-results.png new file mode 100644 index 0000000000000..137feb0d1bccc Binary files /dev/null and b/docs/product/issues/issue-details/sentry-ai/img/autofix-results.png differ diff --git a/docs/product/issues/issue-details/sentry-ai/img/autofix-start-screen.png b/docs/product/issues/issue-details/sentry-ai/img/autofix-start-screen.png new file mode 100644 index 0000000000000..b8e4be22d34d7 Binary files /dev/null and b/docs/product/issues/issue-details/sentry-ai/img/autofix-start-screen.png differ diff --git a/docs/product/issues/issue-details/sentry-ai/img/issue-summary.png b/docs/product/issues/issue-details/sentry-ai/img/issue-summary.png new file mode 100644 index 0000000000000..61c173b6279ec Binary files /dev/null and b/docs/product/issues/issue-details/sentry-ai/img/issue-summary.png differ diff --git a/docs/product/issues/issue-details/sentry-ai/img/setup.png b/docs/product/issues/issue-details/sentry-ai/img/setup.png new file mode 100644 index 0000000000000..9d6d7bda11f1c Binary files /dev/null and b/docs/product/issues/issue-details/sentry-ai/img/setup.png differ diff --git a/docs/product/issues/issue-details/sentry-ai/img/solutions-hub.png b/docs/product/issues/issue-details/sentry-ai/img/solutions-hub.png new file mode 100644 index 0000000000000..50ae3f6d6461c Binary files /dev/null and b/docs/product/issues/issue-details/sentry-ai/img/solutions-hub.png differ diff --git a/docs/product/issues/issue-details/sentry-ai/index.mdx b/docs/product/issues/issue-details/sentry-ai/index.mdx new file mode 100644 index 0000000000000..72f52250f757c --- /dev/null +++ b/docs/product/issues/issue-details/sentry-ai/index.mdx @@ -0,0 +1,71 @@ +--- +title: Sentry AI +description: "Learn about the AI features that help you understand and fix issues faster." +sidebar_order: 50 +--- + +Sentry AI is a set of tools that help you quickly understand an issue, find a root cause, and create a fix. You can find it in the **Solutions Hub** section of the issue details page after clicking on any error from the [**Issues**](https://sentry.io/orgredirect/organizations/:orgslug/issues/) page. + +Once you've set up Sentry AI, you'll be able to use the following features: + +- [**Issue Summary**](#issue-summary): A quick summary of all the data in the issue to help you understand what's going on at-a-glance. +- [**Autofix**](#autofix): A collaborative workflow to find the root cause of an error and create a PR that fixes it. + +## Issue Summary + +The Issue Summary provides a quick overview of an issue by highlighting key insights taken from event and issue level metadata. You'll see a quick overview of what's going wrong in the Solutions Hub in the sidebar: + +![Solutions Hub](./img/solutions-hub.png) + +When you open the Solutions Hub, you'll see a more detailed overview of the issue, including what's going wrong, a possible cause, and if relevant, insights from trace-connected issues. + +![Issue Summary](./img/issue-summary.png) + +## Autofix + + + + Autofix replaces Suggested Fix (an earlier feature that has been sunset). + + + +**Autofix** uses the issue details, your codebase (integrated through GitHub), and its interactions with you to gain context, reason through the problem, and get a deeper understanding of the root cause. + +When you start an Autofix run, you'll see the following screen, with an option to share any additional context: + +![Autofix Start Screen](./img/autofix-start-screen.png) + +Autofix will then analyze the issue and relevant code to help identify the root cause. You'll see the progress displayed at the bottom of the screen. Autofix will share key insights as they come up and you'll have the option to expand each. You'll see the event data and code that support Autofix conclusions, building a clear chain of reasoning back to the root cause. + +Since Autofix doesn’t have all the context, collaboration leads to the best results. You can step in at any time to add context or feedback. To edit its reasoning, click the "Edit" button above any line to provide instructions or corrections, and Autofix will adjust its approach accordingly. If Autofix encounters gaps in its understanding, it will ask for your input. + +![Autofix Insights](./img/autofix-qna.png) + +When you’ve identified the root cause, or gathered enough information to propose your own solution, Autofix will use the same process to suggest a fix. It will present a diff of the proposed code changes. You can then: + +- Accept, reject, or edit the changes. +- Provide feedback or ask Autofix to rethink its approach. +- Request tests to ensure the issue doesn’t recur. + +![Autofix Results](./img/autofix-results.png) + +Once you're happy with the changes, Autofix can create a draft PR for you to review and merge in GitHub. + +## Data Processing + +We use the data listed below for analysis and to provide solutions for your review. Your data will not be used to train any models or to generate output shown to others. These features are powered by generative AI models hosted by the feature-specific subprocessors identified on our [subprocessor list](https://sentry.io/legal/subprocessors/). Our subprocessors will only use the data as directed by us. + +The data used for these features includes: + +- Error messages +- Stack traces +- Sentry spans +- DOM interactions +- Relevant code from linked repositories + +You can learn more about our data privacy practices [here](https://docs.sentry.io/security-legal-pii/security/ai-ml-policy/#use-of-identifying-data-for-generative-ai-features). +## Disabling AI Features + +If you don't find the feature useful and want to disable it for all users, you +can do so in your organization's settings with the "Hide AI Features" toggle. Also remember that the features won't be available until the proper consent is given for your organization. + diff --git a/docs/security-legal-pii/security/ai-ml-policy.mdx b/docs/security-legal-pii/security/ai-ml-policy.mdx index c395af9c05de6..d81bb16c97547 100644 --- a/docs/security-legal-pii/security/ai-ml-policy.mdx +++ b/docs/security-legal-pii/security/ai-ml-policy.mdx @@ -31,9 +31,12 @@ For upcoming features like priority alerts or ML-based grouping, Sentry is askin ## Use of Identifying Data for Generative AI Features -For upcoming features like Autofix that use Generative AI and Retrieval Augmented Generation (RAG), Sentry is asking for access to the following forms of service data: +For upcoming features like Autofix that use Generative AI, Sentry is asking for access to the following forms of service data: +- Error messages - Stack traces +- Spans +- DOM interactions - Relevant code to linked repositories All functionality leveraging RAG will require user opt-in. By opting in, you agree to our use of relevant stack trace and code from your linked repositories with generative AI models hosted by the feature-specific subprocessors identified on our [subprocessor list](https://sentry.io/legal/subprocessors/). diff --git a/src/middleware.ts b/src/middleware.ts index 179ac8f11a36c..4c124f7457e46 100644 --- a/src/middleware.ts +++ b/src/middleware.ts @@ -2587,7 +2587,11 @@ const USER_DOCS_REDIRECTS: Redirect[] = [ }, { from: '/product/issues/issue-details/suggested-fix/', - to: '/product/issues/issue-details/ai-suggested-solution/', + to: '/product/issues/issue-details/sentry-ai/', + }, + { + from: '/product/issues/issue-details/ai-suggested-solution/', + to: '/product/issues/issue-details/sentry-ai/', }, { from: '/guides/grouping-and-fingerprints/',