Skip to content

docs: Remove extras from installation instructions#107492

Merged
sentrivana merged 4 commits intomasterfrom
ivana/remove-python-sdk-extra
Feb 4, 2026
Merged

docs: Remove extras from installation instructions#107492
sentrivana merged 4 commits intomasterfrom
ivana/remove-python-sdk-extra

Conversation

@sentrivana
Copy link
Copy Markdown
Contributor

@sentrivana sentrivana commented Feb 3, 2026

To simplify things, we're moving away from promoting installing the SDK via an extra (like sentry-sdk[flask]).

@sentrivana sentrivana requested a review from a team as a code owner February 3, 2026 14:09
@sentrivana sentrivana changed the title ref(python): Remove extras from installation instructions docs: Remove extras from installation instructions Feb 3, 2026
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 3, 2026
Comment thread static/app/gettingStartedDocs/python-flask/index.tsx
@shellmayr
Copy link
Copy Markdown
Member

Generally makes sense - but I think you can simplify even more here: the utility functions that generate the OnboardingConfigs like profiling() and logs() actually have a default parameter for package sentry-sdk, so these can and should actually be omitted if not using any extras

@sentrivana sentrivana marked this pull request as draft February 3, 2026 14:37
@sentrivana sentrivana marked this pull request as ready for review February 3, 2026 15:49
Copy link
Copy Markdown
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 2 potential issues.

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

packageName = 'sentry-sdk[litellm]';
} else if (selected === 'google_genai') {
packageName = 'sentry-sdk[google_genai]';
} else if (selected === 'pydantic_ai') {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Agent monitoring install missing integration-specific packages

Medium Severity

The install function was changed to ignore the params argument entirely and now calls getPythonInstallCodeBlock() without any parameters. Previously, the code checked the selected integration (langchain, langgraph, litellm, google_genai, pydantic_ai) and included the corresponding package. Users following these instructions for integrations like LangChain won't be told to install the required packages (e.g., langchain), and the integration won't work without them.

Fix in Cursor Fix in Web

text: t('Install the Sentry SDK.'),
},
getPythonInstallCodeBlock({packageName}),
getPythonInstallCodeBlock(),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Feature flag install missing provider-specific packages

Medium Severity

The packageName property was removed from FEATURE_FLAG_CONFIGURATION_MAP entries, and getPythonInstallCodeBlock() is now called without any parameters. This means users configuring LaunchDarkly, OpenFeature, Statsig, or Unleash integrations won't be told to install the required packages. The configuration code examples import these packages (e.g., ldclient, openfeature), but the install step doesn't tell users to install them.

Fix in Cursor Fix in Web

Comment thread static/app/gettingStartedDocs/python/utils.tsx
Copy link
Copy Markdown
Member

@obostjancic obostjancic left a comment

Choose a reason for hiding this comment

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

lgtm

Comment on lines 132 to 140
content: [
{
type: 'text',
text:
featureFlagOptions.integration === FeatureFlagProviderEnum.GENERIC
? t('Install the Sentry SDK.')
: t('Install the Sentry SDK with an extra.'),
text: t('Install the Sentry SDK.'),
},
getPythonInstallCodeBlock({packageName}),
getPythonInstallCodeBlock(),
],
},
{
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Bug: The installation instructions for Python feature flag and agent monitoring integrations no longer install required third-party libraries, causing a ModuleNotFoundError during the verification step.
Severity: HIGH

Suggested Fix

In featureFlag.tsx and agentMonitoring.tsx, update the calls to getPythonInstallCodeBlock to include the required third-party packages. For example, use the additionalPackage prop to pass the specific library needed for each integration, such as getPythonInstallCodeBlock({additionalPackage: 'launchdarkly-server-sdk'}) for LaunchDarkly or getPythonInstallCodeBlock({additionalPackage: 'langchain'}) for LangChain.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.

Location: static/app/gettingStartedDocs/python/featureFlag.tsx#L132-L140

Potential issue: The installation instructions for Python feature flag and agent
monitoring integrations were updated to use a new method for generating the `pip
install` command. However, the new implementation in `featureFlag.tsx` and
`agentMonitoring.tsx` omits the necessary third-party libraries (e.g.,
`launchdarkly-server-sdk`, `langchain`, `litellm`). The setup instructions now only tell
users to install `sentry-sdk`. The subsequent code examples and verification steps
require these missing libraries, which will cause a `ModuleNotFoundError` when the user
attempts to run the provided code, breaking the onboarding flow for these integrations.

@sentrivana sentrivana merged commit 3146724 into master Feb 4, 2026
59 checks passed
@sentrivana sentrivana deleted the ivana/remove-python-sdk-extra branch February 4, 2026 15:55
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 20, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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