Skip to content

Conversation

@shellmayr
Copy link
Member

@shellmayr shellmayr commented Jan 12, 2026

  • Auto-enable the Google GenAI integration

@shellmayr shellmayr marked this pull request as ready for review January 12, 2026 12:27
@shellmayr shellmayr requested a review from a team as a code owner January 12, 2026 12:27
@shellmayr shellmayr requested a review from a team January 12, 2026 12:27

_INTEGRATION_DEACTIVATES = {
"langchain": {"openai", "anthropic"},
"litellm": {"openai", "anthropic"},

This comment was marked as outdated.


_INTEGRATION_DEACTIVATES = {
"langchain": {"openai", "anthropic"},
"litellm": {"openai", "anthropic"},
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be nice to have tests for the new auto-deactivation.

Existing tests like this are in tests/test_ai_integration_deactivation.py.

@alexander-alderman-webb
Copy link
Contributor

alexander-alderman-webb commented Jan 12, 2026

@shellmayr can you investigate why the litellm tests are failing?

@shellmayr
Copy link
Member Author

@alexander-alderman-webb yep - on it!

@github-actions
Copy link
Contributor

github-actions bot commented Jan 13, 2026

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • feat(asyncio): Add on-demand way to enable AsyncioIntegration by sentrivana in #5288

Bug Fixes 🐛

  • fix(ai): redact message parts content of type blob by constantinius in #5243
  • fix(clickhouse): Guard against module shadowing by alexander-alderman-webb in #5250
  • fix(gql): Revert signature change of patched gql.Client.execute by alexander-alderman-webb in #5289
  • fix(litellm): Guard against module shadowing by alexander-alderman-webb in #5249
  • fix(pure-eval): Guard against module shadowing by alexander-alderman-webb in #5252
  • fix(ray): Guard against module shadowing by alexander-alderman-webb in #5254
  • fix(threading): Handle channels shadowing by sentrivana in #5299
  • fix(typer): Guard against module shadowing by alexander-alderman-webb in #5253

Documentation 📚

  • docs: Update Python versions banner in README by sentrivana in #5287

Internal Changes 🔧

  • chore(gen_ai): add auto-enablement for google genai by shellmayr in #5295
  • ci(release): Switch from action-prepare-release to Craft by BYK in #5290

🤖 This preview updates automatically when you update the PR.

@shellmayr
Copy link
Member Author

@alexander-alderman-webb FYI @constantinius let me know that there are still some issues in our LiteLLM instrumentation that may make the experience worse than what we want, if we auto-enable, so I'm removing it from this PR for now

The GoogleGenAI integration is auto-enabled but was not checking the
minimum version (1.29.0) before attempting to patch methods. This could
cause AttributeError crashes during Sentry initialization if a user has
an older version of google-genai installed.

Add _check_minimum_version call in setup_once() to ensure graceful
handling of incompatible versions, matching the pattern used by other
auto-enabled integrations like Anthropic.

Co-Authored-By: Claude Sonnet 4.5 <[email protected]>
Copy link
Contributor

@alexander-alderman-webb alexander-alderman-webb left a comment

Choose a reason for hiding this comment

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

Please also change the title now you're not auto-enabling litellm

@shellmayr shellmayr changed the title chore(gen_ai): add auto-enablement for google genai and litellm chore(gen_ai): add auto-enablement for google genai Jan 13, 2026
@alexander-alderman-webb
Copy link
Contributor

Feel free to merge!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants