Skip to content

Adding sentry prevent AI docs #13884

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

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: AI Privacy and Security
sidebar_order: 30
sidebar_order: 40
description: "Learn about how AI features in Sentry handle your data securely and protect your privacy."
---

Expand Down
8 changes: 6 additions & 2 deletions docs/product/ai-in-sentry/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,18 +15,22 @@ Seer is Sentry's AI debugging agent that helps resolve errors and performance is
- **[Issue Fix](/product/ai-in-sentry/seer/issue-fix/)**: Automated root cause analysis and suggested code fixes, for errors and performance issues.
- **Issue Scan**: Scans issues as they are ingested in Sentry to determine an actionability score and run Seer's issue fix on them automatically.

## Issue Summary
### Issue Summary

**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, a potential cause, and if relevant, insights from trace-connected issues.

### [Sentry Prevent AI](/product/ai-in-sentry/sentry-prevent-ai/)

Sentry Prevent AI is a generative AI assistant developed by Sentry, available in GitHub. It helps you generate new tests for uncovered code and reviews your code changes, offering suggestions for improvement before merging pull requests.

## Privacy and security

Sentry includes strong guarantees for privacy and security of your data. At a glance:

- Sentry does not train generative AI models using your data by default and without your permission.
- AI-generated output is shown only to you and other authorized users in your account.

You can learn more about our data privacy practices [in the security and legal docs](/security-legal-pii/security/ai-ml-policy/#use-of-identifying-data-for-generative-ai-features).
You can get more details at [AI Privacy and Security](/product/ai-in-sentry/ai-privacy-and-security/). To learn more about all our data privacy practices go to [the security and legal docs](/security-legal-pii/security/ai-ml-policy/#use-of-identifying-data-for-generative-ai-features).

## Disabling Generative AI Features

Expand Down
2 changes: 1 addition & 1 deletion docs/product/ai-in-sentry/seer/index.mdx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Seer
description: "Learn about Seer, Sentry's AI agent, and managing generative AI features."
sidebar_order: 21
sidebar_order: 20
---

Seer is Sentry's AI debugging agent. It uses Sentry's rich context (issue details, tracing data, logs, and profiles) to help you troubleshoot and fix errors and performance issues faster.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
51 changes: 51 additions & 0 deletions docs/product/ai-in-sentry/sentry-prevent-ai/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
---
title: Sentry Prevent AI
sidebar_order: 30
description: "Get code reviews and new tests for better code and coverage using Sentry Prevent AI."
---

Sentry Prevent AI is a generative AI assistant developed by Sentry. It helps you generate new tests for uncovered code and reviews your code changes, offering suggestions for improvement before merging pull requests.

<Alert>
Sentry Prevent AI is currently in <strong>beta</strong>. Beta features are still a work in progress and may have bugs. Please join the [Discord conversation](https://discord.com/channels/621778831602221064/1385700674557444190) to share your feedback.
</Alert>

## Getting Started

To enable Sentry Prevent AI in your GitHub organization or on specific repositories, you need to install the [Seer by Sentry app](https://github.com/apps/seer-by-sentry). This allows the assistant to analyze pull requests, provide insights, and write tests.

If you're not an admin, copy the Sentry Prevent AI GitHub App Integration link and share it with your organization's admin or owner to install it.

## Sentry Prevent AI Commands

After installing the app, use these commands in your pull request comments:

- `@sentry review` - The assistant will review the PR and make suggestions.

- `@sentry generate-test` - The assistant will generate tests for your PR.

Once you have added a comment, the assistant will reply, acknowledging the request. For code reviews, you will then see comments added to your PR. For test generation, you will see a comment with a link to the generated tests.

![Sentry Prevent AI Overview](./img/sentry-prevent-review.png)

## Frequently Asked Questions

**What data does Sentry Prevent need access to for the AI system to function, and what information is sent to third-party AI providers?**

Sentry Prevent requires access to your pull requests, including PR metadata, repository information, file names, directory structures, and code diffs. The file names, code diffs, and PR descriptions are sent to the AI provider for analysis.

**Does Sentry Prevent run anywhere outside of GitHub, and does it run in the background?**

Sentry Prevent AI only runs on GitHub, and only runs when triggered by a comment.

The [Show Generative AI Features toggle](https://sentry.io/orgredirect/organizations/:orgslug/settings/#hideAiFeatures) does not currently apply to Sentry Prevent AI. if you don't want Sentry Prevent AI used on your projects, you can uninstall the [Seer app](https://github.com/apps/seer-by-sentry) at any time.

You can learn more about AI privacy and security [here](/product/ai-in-sentry/ai-privacy-and-security/).

## Feedback & Support

Have feedback? Drop us a line on GitHub Issues or contact Sentry support.

---

For more information, see the [Sentry Prevent documentation](https://docs.sentry.io/).
2 changes: 1 addition & 1 deletion docs/product/sentry-toolbar/index.mdx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Sentry Toolbar
sidebar_order: 120
sidebar_order: 110
description: "Bring critical Sentry insights and tools directly into your web app for easier troubleshooting with the Sentry Toolbar."
---

Expand Down