Description
Describe the bug
Sentry cog is triggering warnings in bot log.
sentry-sdk
dependency isn't pinned to a version, but it looks like the cog was added around the time of the release of 1.3.x. Latest is now 2.22.0.
To Reproduce
Steps to reproduce the behavior:
- Run anything which triggers a Sentry transaction.
- See warnings in log.
Expected behavior
No warnings 🤷
Additional context
[2025-03-04 16:33:50] [WARNING] py.warnings: /redbot/data/cogs/Downloader/lib/sentry_sdk/tracing.py:785: DeprecationWarning: The `hub` parameter is deprecated. Please use `scope` instead.
super().__init__(**kwargs)
[2025-03-04 16:33:50] [WARNING] py.warnings: /redbot/data/cogs/CogManager/cogs/sentry/sentry.py:156: SentryHubDeprecationWarning: `sentry_sdk.Hub` is deprecated and will be removed in a future major release. Please consult our 1.x to 2.x migration guide for details on how to migrate `Hub` usage to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x
with Hub(self.client) as hub:
[2025-03-04 16:33:50] [WARNING] py.warnings: /redbot/data/cogs/Downloader/lib/sentry_sdk/hub.py:178: SentryHubDeprecationWarning: `sentry_sdk.Hub` is deprecated and will be removed in a future major release. Please consult our 1.x to 2.x migration guide for details on how to migrate `Hub` usage to the new API: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x
self._old_hubs.append(Hub.current)
[2025-03-04 16:33:50] [WARNING] py.warnings: /redbot/data/cogs/CogManager/cogs/sentry/sentry.py:176: DeprecationWarning: Passing a Hub to finish is deprecated. Please pass a Scope, instead.
transaction.finish(hub)