Skip to content

Make SDK update prompt less noisy/more meaningful #37333

@HazAT

Description

@HazAT

Problem Statement

The problem is that we prompt our users to upgrade their SDK version for every update we ship for SDKs.
We ship a lot of updates so that the prompt could be perceived as unimportant but it shouldn't be.
Also, upgrading without a reason also doesn't make sense; we don't do it, and why should others?

Solution Brainstorm

I am already going into proposals to make these prompts more meaningful.
(Consider it as a suggestion and not how we actually should solve it)

We add a manually maintained entry in the release registry for certain important SDK updates:
https://github.com/getsentry/sentry-release-registry/blob/master/packages/npm/%40sentry/browser/7.8.1.json#L7
To start, we can just document how to do it, and SDK developers should be aware of it. We don't need a complex system around it since it anyway shouldn't happen that often.

e.g.:

"update_text": "{version} contains important security updates"
"update_text": "{version} support new Dynamic Sampling feature, read more: {link}"

We only prompt users if such a text exists and their used version is smaller.
Once dismissed, we never prompt the user again until we ship a new version that again contains update_text

Edit:
ref
https://github.com/getsentry/sentry/blob/0a8a328d9af5fb01217f037d502b6377761ac6de/static/app/components/globalSdkUpdateAlert.tsx

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions