python-sentry-sdk: update to 2.57.0
authorAlexandru Ardelean <redacted>
Thu, 9 Apr 2026 05:34:21 +0000 (08:34 +0300)
committerAlexandru Ardelean <redacted>
Sun, 12 Apr 2026 07:14:26 +0000 (10:14 +0300)
Update package to 2.57.0.

Major version 2.0 breaking changes:
- Hub API deprecated; replaced with new_scope / isolation_scope API;
  configure_scope / push_scope removed; Hub class retained but deprecated
- Python 2.7 support dropped; internal SDK data model refactored
- Migration guide: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x

New features (2.0 - 2.57):
- Many integrations now auto-activate if the package is detected:
  Ariadne, ARQ, asyncpg, Chalice, Loguru, PyMongo, Quart, Starlite,
  Strawberry, Anthropic, Cohere, Graphene, LiteLLM, Google GenAI
- Extensive AI/LLM monitoring with gen_ai.* span attributes aligned
  with OpenTelemetry semantic conventions
- Feature flag tracking: LaunchDarkly, Unleash integrations
- Sentry structured logs (beta, 2.30): capture Loguru log messages
- New SysExitIntegration (2.14)
- failed_request_status_codes configurable for FastAPI/Starlette (2.5)
- Client cert/key support for HttpTransport (2.10)
- Experimental async transport added (2.57)

Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-sentry-sdk/Makefile
lang/python/python-sentry-sdk/test.sh [new file with mode: 0755]

index c65bda308ff38be766e420bc04b1ea72bc5a1153..261fa76cc2af5d006dcebb8daf8ab9825c5d1ae5 100644 (file)
@@ -8,11 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-sentry-sdk
-PKG_VERSION:=1.29.2
+PKG_VERSION:=2.57.0
 PKG_RELEASE:=1
 
 PYPI_NAME:=sentry-sdk
-PKG_HASH:=a99ee105384788c3f228726a88baf515fe7b5f1d2d0f215a03d194369f158df7
+PYPI_SOURCE_NAME:=sentry_sdk
+PKG_HASH:=4be8d1e71c32fb27f79c577a337ac8912137bba4bcbc64a4ec1da4d6d8dc5199
 
 PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
 PKG_LICENSE:=MIT
diff --git a/lang/python/python-sentry-sdk/test.sh b/lang/python/python-sentry-sdk/test.sh
new file mode 100755 (executable)
index 0000000..e485695
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+[ "$1" = python3-sentry-sdk ] || exit 0
+
+python3 - << 'EOF'
+import sentry_sdk
+from sentry_sdk import capture_message, capture_exception
+from sentry_sdk.transport import Transport
+
+class NoopTransport(Transport):
+    def __init__(self):
+        self.events = []
+    def capture_envelope(self, envelope):
+        self.events.append(envelope)
+
+transport = NoopTransport()
+sentry_sdk.init(dsn="", transport=transport)
+
+# capture_message should not raise
+capture_message("test message")
+
+# capture_exception should not raise
+try:
+    raise ValueError("test error")
+except ValueError:
+    capture_exception()
+
+sentry_sdk.flush()
+EOF
git clone https://git.99rst.org/PROJECT