github getsentry/sentry-python 2.62.0

7 hours ago

New Features ✨

  • Add integration for aiomysql by @tonal in #4703

    We're adding support for the aiomysql package. To enable the integration, add it to your integrations list:

    import sentry_sdk
    from sentry_sdk.integrations.aiomysql import AioMySQLIntegration
    
    sentry_sdk.init(
        traces_sample_rate=1.0,
        integrations=[AioMySQLIntegration()],
    )
  • Support HTTPX2 by @sentrivana in #6463

    We're adding out-of-the-box support for HTTPX2. As long as use the package, the Sentry integration
    will be enabled automatically and you should see your requests instrumented in Sentry.

    import httpx2
    import sentry_sdk
    
    sentry_sdk.init(...)
    
    with sentry_sdk.start_transaction(name="testing_sentry"):
        httpx2.get("https://sentry.io/")

Bug Fixes 🐛

Internal Changes 🔧

Don't miss a new sentry-python release

NewReleases is sending notifications on new releases.