Skip to content

feat(agents): Update onboarding to display sdk update alert#107575

Merged
priscilawebdev merged 8 commits intomasterfrom
priscila/feat/add-alert-to-top-of-agent-monitoring-onboarding-prompting-to-update
Feb 4, 2026
Merged

feat(agents): Update onboarding to display sdk update alert#107575
priscilawebdev merged 8 commits intomasterfrom
priscila/feat/add-alert-to-top-of-agent-monitoring-onboarding-prompting-to-update

Conversation

@priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev commented Feb 4, 2026

Problem (Use Case)

  1. A user already has the Sentry SDK installed in their app.
  2. Their SDK version is below the minimum required for Agent Monitoring.
  3. The user starts the Agent Monitoring onboarding.
  4. They skip the Install step because Sentry is already installed.
  5. They miss the minimum SDK version requirement.
  6. Agent Monitoring does not work, and the user doesn’t understand why.

Solution

During onboarding, detect that the user’s SDK version is below the minimum required for Agent Monitoring (based on incoming events).

Surface a prominent alert informing the user that their SDK version is outdated. Preview:

image

Notes

  • Replacing the Install step with an Update step was considered, but this solution was discarded as we depended on an endpoint to return the information we need (its async).
  • Depending on the selected integration, such as Anthropic, the UI displays another alert (the blue), which can make the UI feel cluttered.
image

closes https://linear.app/getsentry/issue/TET-1583/ai-onboarding-detect-latest-sdk-version-in-selected-project-and-prompt

@linear
Copy link

linear bot commented Feb 4, 2026

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 4, 2026

import {getPythonInstallCodeBlock} from './utils';

const MIN_REQUIRED_VERSION = '2.41.0';
Copy link
Member Author

@priscilawebdev priscilawebdev Feb 4, 2026

Choose a reason for hiding this comment

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

@sentrivana I could find only one instance in the docs (see) about the min required version. Can you please confirm that this is the version we would like to surface for all python platforms?

Copy link
Contributor

@sentrivana sentrivana Feb 4, 2026

Choose a reason for hiding this comment

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

This is a bit tricky because the integrations are evolving fast to keep pace with the platforms and changes on our insights pages. So even if we added integration A in version X.Y, you might get a suboptimal experience when using that version because some collected data is not in the place where the insights page wants it to be.

That makes it pretty much impossible to pinpoint the correct min version, so I'd just go with some heuristic and set it to for example 2.43.0 for every AI integration, since that's when the last new integrations were added (MCP and Pydantic AI).

Maybe we can add some sort of notice/sentence that it's always good to be on the latest version of the SDK since these integrations move fast and it can be updated via pip install --upgrade sentry-sdk?

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the review @sentrivana 🙏

I understand the issue. I’ve updated the code to use 2.43.0 as the minimum version, since that’s used for the alert to be shown. I also updated the copy to remove the minimum version and instead highlight the latest version, which should always be accurate because we fetch releases from the backend to keep things in sync.

javascript preview:

image

Copy link
Member Author

Choose a reason for hiding this comment

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

I did not find necessary to add a command to this alert, because they have it right in the install step, which is expanded by default :
image

Copy link
Contributor

Choose a reason for hiding this comment

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

Ty, looks great!

Copy link
Contributor

@cursor cursor bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

Improve SDK update alert messaging to follow Sentry's Plain Speech
brand guidelines. Remove passive voice ("We've detected") and
marketing language ("for the best experience") in favor of direct,
concise messaging.

Changes:
- Replace "We've detected you're using" with "Your version is"
- Replace "for the best experience" with "or later"
- Remove unnecessary words to make copy more direct

Co-Authored-By: Claude <noreply@anthropic.com>
priscilawebdev and others added 2 commits February 4, 2026 11:19
The agentMonitoring function accepts a minVersion parameter but was
not passing it to getInstallStep, causing the install instructions to
always show the default minimum version instead of the configured one.

Co-Authored-By: Claude <noreply@anthropic.com>
@priscilawebdev priscilawebdev merged commit d189cdf into master Feb 4, 2026
59 checks passed
@priscilawebdev priscilawebdev deleted the priscila/feat/add-alert-to-top-of-agent-monitoring-onboarding-prompting-to-update branch February 4, 2026 11:34
jaydgoss pushed a commit that referenced this pull request Feb 12, 2026
**Problem (Use Case)**

1. A user already has the Sentry SDK installed in their app.
2. Their SDK version is below the minimum required for Agent Monitoring.
3. The user starts the Agent Monitoring onboarding.
4. They skip the Install step because Sentry is already installed.
5. They miss the minimum SDK version requirement.
6. Agent Monitoring does not work, and the user doesn’t understand why.

**Solution**

During onboarding, detect that the user’s SDK version is below the
minimum required for Agent Monitoring (based on incoming events).

Surface a prominent alert informing the user that their SDK version is
outdated. Preview:


**Notes**

- Replacing the Install step with an Update step was considered, but
this solution was discarded as we depended on an endpoint to return the
information we need (its async).
- Depending on the selected integration, such as Anthropic, the UI
displays another alert (the blue), which can make the UI feel cluttered.
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.

3 participants