From bd302f5e1d5b2d7d648f86e4c8b11d8f6a93381c Mon Sep 17 00:00:00 2001 From: adssib <75389300+adssib@users.noreply.github.com> Date: Fri, 20 Nov 2026 21:05:04 -0500 Subject: [PATCH] add the sentry sdk changelog sources Co-Authored-By: Claude Opus 5.5 Signed-off-by: adssib <75389300+adssib@users.noreply.github.com> --- plugins/changelog/sentry.go | 30 ++ plugins/changelog/sentry_test.go | 12 + plugins/changelog/testdata/README.md | 4 + .../testdata/golden/sentry-dotnet.json | 52 ++++ .../changelog/testdata/golden/sentry-go.json | 26 ++ .../golden/sentry-javascript-changelog.json | 50 ++++ .../golden/sentry-python-changelog.json | 194 +++++++++++++ .../testdata/sentry-dotnet-4.0.0-CHANGELOG.md | 223 +++++++++++++++ .../testdata/sentry-go-0.31.0-CHANGELOG.md | 72 +++++ ...y-javascript-changelog-10.0.0-CHANGELOG.md | 138 +++++++++ ...sentry-python-changelog-2.0.0-CHANGELOG.md | 267 ++++++++++++++++++ providers/sentry-sdks.md | 35 +++ 12 files changed, 1103 insertions(+) create mode 100644 plugins/changelog/sentry.go create mode 100644 plugins/changelog/sentry_test.go create mode 100644 plugins/changelog/testdata/golden/sentry-dotnet.json create mode 100644 plugins/changelog/testdata/golden/sentry-go.json create mode 100644 plugins/changelog/testdata/golden/sentry-javascript-changelog.json create mode 100644 plugins/changelog/testdata/golden/sentry-python-changelog.json create mode 100644 plugins/changelog/testdata/sentry-dotnet-4.0.0-CHANGELOG.md create mode 100644 plugins/changelog/testdata/sentry-go-0.31.0-CHANGELOG.md create mode 100644 plugins/changelog/testdata/sentry-javascript-changelog-10.0.0-CHANGELOG.md create mode 100644 plugins/changelog/testdata/sentry-python-changelog-2.0.0-CHANGELOG.md create mode 100644 providers/sentry-sdks.md diff --git a/plugins/changelog/sentry.go b/plugins/changelog/sentry.go new file mode 100644 index 0000000..e6c6e07 --- /dev/null +++ b/plugins/changelog/sentry.go @@ -0,0 +1,30 @@ +package changelog + +import "github.com/patch-it-dev/patch-it-plugins/core/plugin" + +func init() { + const page = "providers/sentry-sdks.md" + plugin.RegisterProvider(plugin.Provider{ + ID: "sentry", Name: "Sentry", Category: plugin.CategoryMonitoring, Homepage: "https://sentry.io", + Sources: []plugin.Source{ + sdk(page, "python-changelog", SentryPython, "pypi:sentry-sdk"), + sdk(page, "javascript-changelog", SentryJavaScript, "npm:@sentry/node", "npm:@sentry/browser"), + sdk(page, "go", SentryGo, "go:github.com/getsentry/sentry-go"), + sdk(page, "dotnet", SentryDotnet, "nuget:Sentry"), + }, + }) +} + +// Sentry's SDKs: CHANGELOG.md, "## X.Y.Z", with "### Breaking Changes" / +// "### Removed" / "### Deprecations" sections or conventional-commit bullets +// ("feat(core)!: Remove `x`"); tagged X.Y.Z, except sentry-go's vX.Y.Z. +var ( + SentryPython = File{API: "sentry/python-changelog", Package: "sentry-sdk", Ecosystem: "pypi", Module: "sentry_sdk", + Repo: "getsentry/sentry-python", Path: "CHANGELOG.md"} + SentryJavaScript = File{API: "sentry/javascript-changelog", Package: "@sentry/node", Ecosystem: "npm", + Repo: "getsentry/sentry-javascript", Path: "CHANGELOG.md"} + SentryGo = File{API: "sentry/go", Package: "github.com/getsentry/sentry-go", Ecosystem: "go", Module: "sentry", + Repo: "getsentry/sentry-go", TagPrefix: "v", Path: "CHANGELOG.md"} + SentryDotnet = File{API: "sentry/dotnet", Package: "Sentry", Ecosystem: "nuget", + Repo: "getsentry/sentry-dotnet", Path: "CHANGELOG.md"} +) diff --git a/plugins/changelog/sentry_test.go b/plugins/changelog/sentry_test.go new file mode 100644 index 0000000..4ca4a07 --- /dev/null +++ b/plugins/changelog/sentry_test.go @@ -0,0 +1,12 @@ +package changelog + +import "testing" + +func TestSentrySDKs(t *testing.T) { + checkSDKs(t, []sdkCase{ + {SentryPython, "2.0.0", "1.45.1", "sentry-python-changelog-2.0.0-CHANGELOG.md", "", "1.45.0"}, + {SentryJavaScript, "10.0.0", "9.47.2", "sentry-javascript-changelog-10.0.0-CHANGELOG.md", "", "9.40.0"}, + {SentryGo, "0.31.0", "0.30.0", "sentry-go-0.31.0-CHANGELOG.md", "", "0.30.0"}, + {SentryDotnet, "4.0.0", "3.41.4", "sentry-dotnet-4.0.0-CHANGELOG.md", "", "3.41.4"}, + }) +} diff --git a/plugins/changelog/testdata/README.md b/plugins/changelog/testdata/README.md index fb18461..9674235 100644 --- a/plugins/changelog/testdata/README.md +++ b/plugins/changelog/testdata/README.md @@ -22,6 +22,10 @@ Read with `Plugin{File: ...}` (`sdks.go`); `golden/-.json` is | `stripe-ruby-7.0.0-CHANGELOG.md` | https://raw.githubusercontent.com/stripe/stripe-ruby/v7.0.0/CHANGELOG.md | `6081371` | 2026-11-20 | MIT (stripe-ruby); trimmed to the sections of 7.0.0 (the golden) and 6.5.0 (the drop test), each unchanged | "Remove `details` method from `Issuing.Card` resource. The method was not supported." | | `stripe-dotnet-40.0.0-CHANGELOG.md` | https://raw.githubusercontent.com/stripe/stripe-dotnet/v40.0.0/CHANGELOG.md | `e07ebe7` | 2026-11-20 | Apache-2.0 (stripe-dotnet); trimmed to the sections of 40.0.0 (the golden) and 39.126.0 (the drop test), each unchanged | "Remove `CustomerPaymentSettingsOptions`, `CustomerPaymentSettingsPaymentMethodOptionsBancontactOptions`, `CustomerPay…" | | `stripe-php-9.0.0-CHANGELOG.md` | https://raw.githubusercontent.com/stripe/stripe-php/v9.0.0/CHANGELOG.md | `e405c17` | 2026-11-20 | MIT (stripe-php); trimmed to the sections of 9.0.0 (the golden) and 8.12.0 (the drop test), each unchanged | "Remove deprecated `AlipayAccount`, `BitcoinReceiver`, `BitcoinTransaction`, `Recipient`, `RecipientTransfer`, and `Th…" | +| `sentry-python-changelog-2.0.0-CHANGELOG.md` | https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md | `38bbb8d` | 2026-11-20 | MIT (sentry-python); trimmed to the sections of 2.0.0 (the golden) and 1.45.0 (the drop test), each unchanged | "Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead." | +| `sentry-javascript-changelog-10.0.0-CHANGELOG.md` | https://raw.githubusercontent.com/getsentry/sentry-javascript/10.0.0/CHANGELOG.md | `19f754a` | 2026-11-20 | MIT (sentry-javascript); trimmed to the sections of 10.0.0 (the golden) and 9.40.0 (the drop test), each unchanged | "feat(core)!: Remove `BaseClient` ([#17071](https://github.com/getsentry/sentry-javascript/pull/17071))" | +| `sentry-go-0.31.0-CHANGELOG.md` | https://raw.githubusercontent.com/getsentry/sentry-go/v0.31.0/CHANGELOG.md | `17ceb6c` | 2026-11-20 | MIT (sentry-go); trimmed to the sections of 0.31.0 (the golden) and 0.30.0 (the drop test), each unchanged | "Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#928](https://gi…" | +| `sentry-dotnet-4.0.0-CHANGELOG.md` | https://raw.githubusercontent.com/getsentry/sentry-dotnet/4.0.0/CHANGELOG.md | `d4d8af5` | 2026-11-20 | MIT (sentry-dotnet); trimmed to the sections of 4.0.0 (the golden) and 3.41.4 (the drop test), each unchanged | "`ITransaction` has been renamed to `ITransactionTracer`. You will need to update any references to these interfaces i…" | ## Version lists diff --git a/plugins/changelog/testdata/golden/sentry-dotnet.json b/plugins/changelog/testdata/golden/sentry-dotnet.json new file mode 100644 index 0000000..982652d --- /dev/null +++ b/plugins/changelog/testdata/golden/sentry-dotnet.json @@ -0,0 +1,52 @@ +[ + { + "id": 1, + "fingerprint": "sha256:0f44b1e48ef9b130605c09c38f207a5b580f7ed6b0c2a05c906b83dc7ad76388", + "api": "sentry/dotnet", + "version": "4.0.0", + "previous_version": "3.41.4", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "nuget", + "package": "Sentry", + "change": "renamed_symbol", + "symbols": [ + "ITransaction" + ], + "replacement": "ITransactionTracer" + }, + "description": "`ITransaction` was renamed to `ITransactionTracer` in Sentry 4.0.0: code using the old name fails.", + "migration_hint": "`ITransaction` has been renamed to `ITransactionTracer`. You will need to update any references to these interfaces in your code to use the new interface names ([#2731](https://github.com/getsentry/sentry-dotnet/pull/2731), [#2870](https://github.com/getsentry/sentry-dotnet/pull/2870)) (Sentry's changelog for 4.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-dotnet/4.0.0/CHANGELOG.md", + "source_excerpt": "## 4.0.0\nAPI breaking Changes\n- `ITransaction` has been renamed to `ITransactionTracer`. You will need to update any references to these interfaces in your code to use the new interface names ([#2731](https://github.com/getsentry/sentry-dotnet/pull/2731), [#2870](https://github.com/getsentry/sentry-dotnet/pull/2870))", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 2, + "fingerprint": "sha256:c2e3c53d050a43c913df5961fc5e32dd38251a8591ad9592599e1ac2f274e61c", + "api": "sentry/dotnet", + "version": "4.0.0", + "previous_version": "3.41.4", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "nuget", + "package": "Sentry", + "change": "removed_symbol", + "symbols": [ + "WithScope", + "WithScopeAsync" + ] + }, + "description": "`WithScope`, `WithScopeAsync` were removed in Sentry 4.0.0: code using it fails.", + "migration_hint": "The `WithScope` and `WithScopeAsync` methods have been removed. We have discovered that these methods didn't work correctly in certain desktop contexts, especially when using a global scope. ([#2717](https://github.com/getsentry/sentry-dotnet/pull/2717)) (Sentry's changelog for 4.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-dotnet/4.0.0/CHANGELOG.md", + "source_excerpt": "## 4.0.0\nAPI breaking Changes\n- The `WithScope` and `WithScopeAsync` methods have been removed. We have discovered that these methods didn't work correctly in certain desktop contexts, especially when using a global scope. ([#2717](https://github.com/getsentry/sentry-dotnet/pull/2717))", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + } +] diff --git a/plugins/changelog/testdata/golden/sentry-go.json b/plugins/changelog/testdata/golden/sentry-go.json new file mode 100644 index 0000000..fa72683 --- /dev/null +++ b/plugins/changelog/testdata/golden/sentry-go.json @@ -0,0 +1,26 @@ +[ + { + "id": 1, + "fingerprint": "sha256:b9934e7cf2ed5fce3e47a8dcccab92ee4b04c4b4fe555a45643237bb667985ff", + "api": "sentry/go", + "version": "0.31.0", + "previous_version": "0.30.0", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "go", + "package": "github.com/getsentry/sentry-go", + "change": "removed_symbol", + "symbols": [ + "User.Segment" + ] + }, + "description": "`User.Segment` was removed in github.com/getsentry/sentry-go 0.31.0: code using it fails.", + "migration_hint": "Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#928](https://github.com/getsentry/sentry-go/pull/928)) (github.com/getsentry/sentry-go's changelog for 0.31.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-go/v0.31.0/CHANGELOG.md", + "source_excerpt": "## 0.31.0\nBreaking Changes\n- Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#928](https://github.com/getsentry/sentry-go/pull/928))", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + } +] diff --git a/plugins/changelog/testdata/golden/sentry-javascript-changelog.json b/plugins/changelog/testdata/golden/sentry-javascript-changelog.json new file mode 100644 index 0000000..fe732c2 --- /dev/null +++ b/plugins/changelog/testdata/golden/sentry-javascript-changelog.json @@ -0,0 +1,50 @@ +[ + { + "id": 1, + "fingerprint": "sha256:56f85aa1cf74a8a8d04b37f117e24c3545011d733459d9f04195be526598fe1d", + "api": "sentry/javascript-changelog", + "version": "10.0.0", + "previous_version": "9.47.2", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "npm", + "package": "@sentry/node", + "change": "removed_symbol", + "symbols": [ + "BaseClient" + ] + }, + "description": "`BaseClient` was removed in @sentry/node 10.0.0: code using it fails.", + "migration_hint": "feat(core)!: Remove `BaseClient` ([#17071](https://github.com/getsentry/sentry-javascript/pull/17071)) (@sentry/node's changelog for 10.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-javascript/10.0.0/CHANGELOG.md", + "source_excerpt": "## 10.0.0\nBreaking Changes\n- feat(core)!: Remove `BaseClient` ([#17071](https://github.com/getsentry/sentry-javascript/pull/17071))", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 2, + "fingerprint": "sha256:b30cd0ae134c24563f30f8467e081143808401e8218d929b741564ab8a0efa0f", + "api": "sentry/javascript-changelog", + "version": "10.0.0", + "previous_version": "9.47.2", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "npm", + "package": "@sentry/node", + "change": "removed_symbol", + "symbols": [ + "hasTracingEnabled" + ] + }, + "description": "`hasTracingEnabled` was removed in @sentry/node 10.0.0: code using it fails.", + "migration_hint": "feat(core)!: Remove `hasTracingEnabled` ([#17072](https://github.com/getsentry/sentry-javascript/pull/17072)) (@sentry/node's changelog for 10.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-javascript/10.0.0/CHANGELOG.md", + "source_excerpt": "## 10.0.0\nBreaking Changes\n- feat(core)!: Remove `hasTracingEnabled` ([#17072](https://github.com/getsentry/sentry-javascript/pull/17072))", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + } +] diff --git a/plugins/changelog/testdata/golden/sentry-python-changelog.json b/plugins/changelog/testdata/golden/sentry-python-changelog.json new file mode 100644 index 0000000..76bcea1 --- /dev/null +++ b/plugins/changelog/testdata/golden/sentry-python-changelog.json @@ -0,0 +1,194 @@ +[ + { + "id": 1, + "fingerprint": "sha256:f0c7d39b5f7637c7ff0fa723b2600b82acea056fca8dd0e00461c323b93cfd92", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "tracing.Span.new_span" + ] + }, + "description": "`tracing.Span.new_span` was removed in sentry-sdk 2.0.0: code using it fails.", + "migration_hint": "Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nRemoved\n- Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 2, + "fingerprint": "sha256:3e2dd515421c964b45beeb1d408742904a22f2734f16400cd4dd7d3deb161b39", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "tracing.Transaction.new_span" + ] + }, + "description": "`tracing.Transaction.new_span` was removed in sentry-sdk 2.0.0: code using it fails.", + "migration_hint": "Removed `sentry_sdk.tracing.Transaction.new_span`. Use `sentry_sdk.tracing.Transaction.start_child` instead. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nRemoved\n- Removed `sentry_sdk.tracing.Transaction.new_span`. Use `sentry_sdk.tracing.Transaction.start_child` instead.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 3, + "fingerprint": "sha256:1eda15f0db1d4c4b77515fad862379d9e5dde46a6599b2112366b81432a835ab", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "utils.Auth.store_api_url" + ] + }, + "description": "`utils.Auth.store_api_url` was removed in sentry-sdk 2.0.0: code using it fails.", + "migration_hint": "Removed `sentry_sdk.utils.Auth.store_api_url`. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nRemoved\n- Removed `sentry_sdk.utils.Auth.store_api_url`.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 4, + "fingerprint": "sha256:e7bf8f003f2bc635b49dda1611d52077b42ee8239ab466e79341dbfa7d4e289c", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "tracing_utils_py2.py" + ] + }, + "description": "`tracing_utils_py2.py` was removed in sentry-sdk 2.0.0: code using it fails.", + "migration_hint": "Removed `tracing_utils_py2.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nRemoved\n- Removed `tracing_utils_py2.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 5, + "fingerprint": "sha256:3907408c839ca3323d9d3618c649c1ecb3ab9341022e4da40fed5f2ef788655f", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "breaking", + "breaking": true, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "profiler.Scheduler.stop_profiling" + ] + }, + "description": "`profiler.Scheduler.stop_profiling` was removed in sentry-sdk 2.0.0: code using it fails.", + "migration_hint": "Removed the `sentry_sdk.profiler.Scheduler.stop_profiling` method. Any calls to this method can simply be removed, since this was a no-op method. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nRemoved\n- Removed the `sentry_sdk.profiler.Scheduler.stop_profiling` method. Any calls to this method can simply be removed, since this was a no-op method.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 6, + "fingerprint": "sha256:267c491f2b9d0d8aecfc5322d8bc8361cd4325bcdfe89e083d22d36f95b783ac", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "deprecation", + "breaking": false, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "configure_scope" + ] + }, + "description": "`configure_scope` is deprecated in sentry-sdk 2.0.0: a later release may remove it.", + "migration_hint": "`configure_scope` is deprecated. Use the new isolation scope directly via `Scope.get_isolation_scope()` instead. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nDeprecated\n- `configure_scope` is deprecated. Use the new isolation scope directly via `Scope.get_isolation_scope()` instead.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 7, + "fingerprint": "sha256:50850b1709f2eb184c4c9c06ca7e03526b392d864286ad444696bea22dd27302", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "deprecation", + "breaking": false, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "push_scope" + ] + }, + "description": "`push_scope` is deprecated in sentry-sdk 2.0.0: a later release may remove it.", + "migration_hint": "`push_scope` is deprecated. Use the new `new_scope` context manager to fork the necessary scopes. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nDeprecated\n- `push_scope` is deprecated. Use the new `new_scope` context manager to fork the necessary scopes.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + }, + { + "id": 8, + "fingerprint": "sha256:2c94e0b51f757d22c715faac37426deb5f991e822636564ff18f87449121719c", + "api": "sentry/python-changelog", + "version": "2.0.0", + "previous_version": "1.45.1", + "change_type": "deprecation", + "breaking": false, + "subject": { + "type": "package_release", + "ecosystem": "pypi", + "package": "sentry-sdk", + "change": "removed_symbol", + "symbols": [ + "transport.Transport.capture_event" + ] + }, + "description": "`transport.Transport.capture_event` is deprecated in sentry-sdk 2.0.0: a later release may remove it.", + "migration_hint": "Deprecated `sentry_sdk.transport.Transport.capture_event`. Please use `sentry_sdk.transport.Transport.capture_envelope`, instead. (sentry-sdk's changelog for 2.0.0)", + "source_url": "https://raw.githubusercontent.com/getsentry/sentry-python/2.0.0/CHANGELOG.md", + "source_excerpt": "## 2.0.0\nDeprecated\n- Deprecated `sentry_sdk.transport.Transport.capture_event`. Please use `sentry_sdk.transport.Transport.capture_envelope`, instead.", + "confidence": 1, + "detected_at": "2026-11-14T12:00:00Z" + } +] diff --git a/plugins/changelog/testdata/sentry-dotnet-4.0.0-CHANGELOG.md b/plugins/changelog/testdata/sentry-dotnet-4.0.0-CHANGELOG.md new file mode 100644 index 0000000..a2d0df1 --- /dev/null +++ b/plugins/changelog/testdata/sentry-dotnet-4.0.0-CHANGELOG.md @@ -0,0 +1,223 @@ +## 4.0.0 + +This major release includes many exciting new features including support for [Profiling](https://docs.sentry.io/platforms/dotnet/profiling/) and [Metrics](https://docs.sentry.io/platforms/dotnet/metrics/)(preview), [AOT](https://sentry.engineering/blog/should-you-could-you-aot) with [Native Crash Reporting](https://github.com/getsentry/sentry-dotnet/issues/2770), [Spotlight](https://spotlightjs.com/), Screenshots on MAUI and much more. Details about these features and other changes are below. + +### .NET target framework changes + +We're dropping support for some of the old target frameworks, please check this [GitHub Discussion](https://github.com/getsentry/sentry-dotnet/discussions/2776) for details on why. + +- **Replace support for .NET Framework 4.6.1 with 4.6.2** ([#2786](https://github.com/getsentry/sentry-dotnet/pull/2786)) + + .NET Framework 4.6.1 was announced on Nov 30, 2015. And went out of support over a year ago, on Apr 26, 2022. + +- **Drop .NET Core 3.1 and .NET 5 support** ([#2787](https://github.com/getsentry/sentry-dotnet/pull/2787)) + +- **Dropped netstandard2.0 support for Sentry.AspNetCore** ([#2807](https://github.com/getsentry/sentry-dotnet/pull/2807)) + +- **Replace support for .NET 6 on mobile (e.g: `net6.0-android`) with .NET 7** ([#2624](https://github.com/getsentry/sentry-dotnet/pull/2604)) + + .NET 6 on mobile has been out of support since May 2023 and with .NET 8, it's no longer possible to build .NET 6 Mobile specific targets. + For that reason, we're moving the mobile-specific TFMs from `net6.0-platform` to `net7.0-platform`. + + Mobile apps still work on .NET 6 will pull the `Sentry` .NET 6, which offers the .NET-only features, + without native/platform-specific bindings and SDKs. See [this ticket for more details](https://github.com/getsentry/sentry-dotnet/issues/2623). + +- **MAUI dropped Tizen support** ([#2734](https://github.com/getsentry/sentry-dotnet/pull/2734)) + +### Sentry Self-hosted Compatibility + +If you're using `sentry.io` this change does not affect you. +This SDK version is compatible with a self-hosted version of Sentry `22.12.0` or higher. If you are using an older version of [self-hosted Sentry](https://develop.sentry.dev/self-hosted/) (aka on-premise), you will need to [upgrade](https://develop.sentry.dev/self-hosted/releases/). + +### Significant change in behavior + +- Transaction names for ASP.NET Core are now consistently named `HTTP-VERB /path` (e.g. `GET /home`). Previously, the leading forward slash was missing for some endpoints. ([#2808](https://github.com/getsentry/sentry-dotnet/pull/2808)) +- Setting `SentryOptions.Dsn` to `null` now throws `ArgumentNullException` during initialization. ([#2655](https://github.com/getsentry/sentry-dotnet/pull/2655)) +- Enable `CaptureFailedRequests` by default ([#2688](https://github.com/getsentry/sentry-dotnet/pull/2688)) +- Added `Sentry` namespace to global usings when `ImplicitUsings` is enabled ([#3043](https://github.com/getsentry/sentry-dotnet/pull/3043)) +If you have conflicts, you can opt out by adding the following to your `csproj`: +``` + + false + +``` +- Transactions' spans are no longer automatically finished with the status `deadline_exceeded` by the transaction. This is now handled by the [Relay](https://github.com/getsentry/relay). + - Customers self hosting Sentry must use verion 22.12.0 or later ([#3013](https://github.com/getsentry/sentry-dotnet/pull/3013)) +- The `User.IpAddress` is now set to `{{auto}}` by default, even when sendDefaultPII is disabled ([#2981](https://github.com/getsentry/sentry-dotnet/pull/2981)) + - The "Prevent Storing of IP Addresses" option in the "Security & Privacy" project settings on sentry.io can be used to control this instead +- The `DiagnosticLogger` signature for `LogWarning` changed to take the `exception` as the first parameter. That way it no longer gets mixed up with the TArgs. ([#2987](https://github.com/getsentry/sentry-dotnet/pull/2987)) + +### API breaking Changes + +If you have compilation errors you can find the affected types or overloads missing in the changelog entries below. + +#### Changed APIs + +- Class renamed `Sentry.User` to `Sentry.SentryUser` ([#3015](https://github.com/getsentry/sentry-dotnet/pull/3015)) +- Class renamed `Sentry.Runtime` to `Sentry.SentryRuntime` ([#3016](https://github.com/getsentry/sentry-dotnet/pull/3016)) +- Class renamed `Sentry.Span` to `Sentry.SentrySpan` ([#3021](https://github.com/getsentry/sentry-dotnet/pull/3021)) +- Class renamed `Sentry.Transaction` to `Sentry.SentryTransaction` ([#3023](https://github.com/getsentry/sentry-dotnet/pull/3023)) +- Rename iOS and MacCatalyst platform-specific options from `Cocoa` to `Native` ([#2940](https://github.com/getsentry/sentry-dotnet/pull/2940)) +- Rename iOS platform-specific options `EnableCocoaSdkTracing` to `EnableTracing` ([#2940](https://github.com/getsentry/sentry-dotnet/pull/2940)) +- Rename Android platform-specific options from `Android` to `Native` ([#2940](https://github.com/getsentry/sentry-dotnet/pull/2940)) +- Rename Android platform-specific options `EnableAndroidSdkTracing` and `EnableAndroidSdkBeforeSend` to `EnableTracing` and `EnableBeforeSend` respectively ([#2940](https://github.com/getsentry/sentry-dotnet/pull/2940)) +- Rename iOS and MacCatalyst platform-specific options from `iOS` to `Cocoa` ([#2929](https://github.com/getsentry/sentry-dotnet/pull/2929)) +- `ITransaction` has been renamed to `ITransactionTracer`. You will need to update any references to these interfaces in your code to use the new interface names ([#2731](https://github.com/getsentry/sentry-dotnet/pull/2731), [#2870](https://github.com/getsentry/sentry-dotnet/pull/2870)) +- `DebugImage` and `DebugMeta` moved to `Sentry.Protocol` namespace. ([#2815](https://github.com/getsentry/sentry-dotnet/pull/2815)) +- `SentryClient.Dispose` is no longer obsolete ([#2842](https://github.com/getsentry/sentry-dotnet/pull/2842)) +- `ISentryClient.CaptureEvent` overloads have been replaced by a single method accepting optional `Hint` and `Scope` parameters. You will need to pass `hint` as a named parameter from code that calls `CaptureEvent` without passing a `scope` argument. ([#2749](https://github.com/getsentry/sentry-dotnet/pull/2749)) +- `TransactionContext` and `SpanContext` constructors were updated. If you're constructing instances of these classes, you will need to adjust the order in which you pass parameters to these. ([#2694](https://github.com/getsentry/sentry-dotnet/pull/2694), [#2696](https://github.com/getsentry/sentry-dotnet/pull/2696)) +- The `DiagnosticLogger` signature for `LogError` and `LogFatal` changed to take the `exception` as the first parameter. That way it no longer gets mixed up with the TArgs. The `DiagnosticLogger` now also receives an overload for `LogError` and `LogFatal` that accepts a message only. ([#2715](https://github.com/getsentry/sentry-dotnet/pull/2715)) +- `Distribution` added to `IEventLike`. ([#2660](https://github.com/getsentry/sentry-dotnet/pull/2660)) +- `StackFrame`'s `ImageAddress`, `InstructionAddress`, and `FunctionId` changed to `long?`. ([#2691](https://github.com/getsentry/sentry-dotnet/pull/2691)) +- `DebugImage.ImageAddress` changed to `long?`. ([#2725](https://github.com/getsentry/sentry-dotnet/pull/2725)) +- Contexts now inherit from `IDictionary` rather than `ConcurrentDictionary`. The specific dictionary being used is an implementation detail. ([#2729](https://github.com/getsentry/sentry-dotnet/pull/2729)) +- The method used to configure a Sentry Sink for Serilog now has an additional overload. Calling `WriteTo.Sentry()` with no arguments will no longer attempt to initialize the SDK (it has optional arguments to configure the behavior of the Sink only). If you want to initialize Sentry at the same time you configure the Sentry Sink then you will need to use the overload of this method that accepts a DSN as the first parameter (e.g. `WriteTo.Sentry("https://d4d82fc1c2c4032a83f3a29aa3a3aff@fake-sentry.io:65535/2147483647")`). ([#2928](https://github.com/getsentry/sentry-dotnet/pull/2928)) + +#### Removed APIs + +- SentrySinkExtensions.ConfigureSentrySerilogOptions is now internal. If you were using this method, please use one of the `SentrySinkExtensions.Sentry` extension methods instead. ([#2902](https://github.com/getsentry/sentry-dotnet/pull/2902)) +- A number of `[Obsolete]` options have been removed ([#2841](https://github.com/getsentry/sentry-dotnet/pull/2841)) + - `BeforeSend` - use `SetBeforeSend` instead. + - `BeforeSendTransaction` - use `SetBeforeSendTransaction` instead. + - `BeforeBreadcrumb` - use `SetBeforeBreadcrumb` instead. + - `CreateHttpClientHandler` - use `CreateHttpMessageHandler` instead. + - `ReportAssemblies` - use `ReportAssembliesMode` instead. + - `KeepAggregateException` - this property is no longer used and has no replacement. + - `DisableTaskUnobservedTaskExceptionCapture` method has been renamed to `DisableUnobservedTaskExceptionCapture`. + - `DebugDiagnosticLogger` - use `TraceDiagnosticLogger` instead. +- A number of iOS/Android-specific `[Obsolete]` options have been removed ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) + - `Distribution` - use `SentryOptions.Distribution` instead. + - `EnableAutoPerformanceTracking` - use `SetBeforeSendTransaction` instead. + - `EnableCoreDataTracking` - use `EnableCoreDataTracing` instead. + - `EnableFileIOTracking` - use `EnableFileIOTracing` instead. + - `EnableOutOfMemoryTracking` - use `EnableWatchdogTerminationTracking` instead. + - `EnableUIViewControllerTracking` - use `EnableUIViewControllerTracing` instead. + - `StitchAsyncCode` - no longer available. + - `ProfilingTracesInterval` - no longer available. + - `ProfilingEnabled` - use `ProfilesSampleRate` instead. +- Obsolete `SystemClock` constructor removed, use `SystemClock.Clock` instead. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) +- Obsolete `Runtime.Clone()` removed, this shouldn't have been public in the past and has no replacement. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) +- Obsolete `SentryException.Data` removed, use `SentryException.Mechanism.Data` instead. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) +- Obsolete `AssemblyExtensions` removed, this shouldn't have been public in the past and has no replacement. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) +- Obsolete `SentryDatabaseLogging.UseBreadcrumbs()` removed, it is called automatically and has no replacement. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) +- Obsolete `Scope.GetSpan()` removed, use `Span` property instead. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856)) +- Obsolete `IUserFactory` removed, use `ISentryUserFactory` instead. ([#2856](https://github.com/getsentry/sentry-dotnet/pull/2856), [#2840](https://github.com/getsentry/sentry-dotnet/pull/2840)) +- `IHasMeasurements` has been removed, use `ISpanData` instead. ([#2659](https://github.com/getsentry/sentry-dotnet/pull/2659)) +- `IHasBreadcrumbs` has been removed, use `IEventLike` instead. ([#2670](https://github.com/getsentry/sentry-dotnet/pull/2670)) +- `ISpanContext` has been removed, use `ITraceContext` instead. ([#2668](https://github.com/getsentry/sentry-dotnet/pull/2668)) +- `IHasTransactionNameSource` has been removed, use `ITransactionContext` instead. ([#2654](https://github.com/getsentry/sentry-dotnet/pull/2654)) +- ([#2694](https://github.com/getsentry/sentry-dotnet/pull/2694)) +- The unused `StackFrame.InstructionOffset` has been removed. ([#2691](https://github.com/getsentry/sentry-dotnet/pull/2691)) +- The unused `Scope.Platform` property has been removed. ([#2695](https://github.com/getsentry/sentry-dotnet/pull/2695)) +- The obsolete setter `Sentry.PlatformAbstractions.Runtime.Identifier` has been removed ([2764](https://github.com/getsentry/sentry-dotnet/pull/2764)) +- `Sentry.Values` is now internal as it is never exposed in the public API ([#2771](https://github.com/getsentry/sentry-dotnet/pull/2771)) +- The `TracePropagationTarget` class has been removed, use the `SubstringOrRegexPattern` class instead. ([#2763](https://github.com/getsentry/sentry-dotnet/pull/2763)) +- The `WithScope` and `WithScopeAsync` methods have been removed. We have discovered that these methods didn't work correctly in certain desktop contexts, especially when using a global scope. ([#2717](https://github.com/getsentry/sentry-dotnet/pull/2717)) + + Replace your usage of `WithScope` with overloads of `Capture*` methods: + + - `SentrySdk.CaptureEvent(SentryEvent @event, Action scopeCallback)` + - `SentrySdk.CaptureMessage(string message, Action scopeCallback)` + - `SentrySdk.CaptureException(Exception exception, Action scopeCallback)` + + ```c# + // Before + SentrySdk.WithScope(scope => + { + scope.SetTag("key", "value"); + SentrySdk.CaptureEvent(new SentryEvent()); + }); + + // After + SentrySdk.CaptureEvent(new SentryEvent(), scope => + { + // Configure your scope here + scope.SetTag("key", "value"); + }); + ``` + +### Features + +- Experimental pre-release availability of Metrics. We're exploring the use of Metrics in Sentry. The API will very likely change and we don't yet have any documentation. ([#2949](https://github.com/getsentry/sentry-dotnet/pull/2949)) + - `SentrySdk.Metrics.Set` now additionally accepts `string` as value ([#3092](https://github.com/getsentry/sentry-dotnet/pull/3092)) + - Timing metrics can now be captured with `SentrySdk.Metrics.StartTimer` ([#3075](https://github.com/getsentry/sentry-dotnet/pull/3075)) + - Added support for capturing built-in metrics from the `System.Diagnostics.Metrics` API ([#3052](https://github.com/getsentry/sentry-dotnet/pull/3052)) +- `Sentry.Profiling` is now available as a package on [nuget](nuget.org). Be aware that profiling is in alpha and on servers the overhead could be high. Improving the experience for ASP.NET Core is tracked on [this issue]( +https://github.com/getsentry/sentry-dotnet/issues/2316) ([#2800](https://github.com/getsentry/sentry-dotnet/pull/2800)) + - iOS profiling support (alpha). ([#2930](https://github.com/getsentry/sentry-dotnet/pull/2930)) +- Native crash reporting on NativeAOT published apps (Windows, Linux, macOS). ([#2887](https://github.com/getsentry/sentry-dotnet/pull/2887)) +- Support for [Spotlight](https://spotlightjs.com/), a debug tool for local development. ([#2961](https://github.com/getsentry/sentry-dotnet/pull/2961)) + - Enable it with the option `EnableSpotlight` + - Optionally configure the URL to connect via `SpotlightUrl`. Defaults to `http://localhost:8969/stream`. + +### MAUI + +- Added screenshot capture support for errors. You can opt-in via `SentryMauiOptions.AttachScreenshots` ([#2965](https://github.com/getsentry/sentry-dotnet/pull/2965)) + - Supports Android and iOS only. Windows is not supported. +- App context now has `in_foreground`, indicating whether the app was in the foreground or the background. ([#2983](https://github.com/getsentry/sentry-dotnet/pull/2983)) +- Android: When capturing unhandled exceptions, the SDK now can automatically attach `LogCat` to the event. You can opt-in via `SentryOptions.Android.LogCatIntegration` and configure `SentryOptions.Android.LogCatMaxLines`. ([#2926](https://github.com/getsentry/sentry-dotnet/pull/2926)) + - Available when targeting `net7.0-android` or later, on API level 23 or later. + +#### Native AOT + +Native AOT publishing support for .NET 8 has been added to Sentry for the following platforms: + +- Windows +- Linux +- macOS +- Mac Catalyst +- iOS + +There are some functional differences when publishing Native AOT: + +- `StackTraceMode.Enhanced` is ignored because it's not available when publishing Native AOT. The mechanism to generate these enhanced stack traces relies heavily on reflection which isn't compatible with trimming. +- Reflection cannot be leveraged for JSON Serialization and you may need to use `SentryOptions.AddJsonSerializerContext` to supply a serialization context for types that you'd like to send to Sentry (e.g. in the `Span.Context`). ([#2732](https://github.com/getsentry/sentry-dotnet/pull/2732), [#2793](https://github.com/getsentry/sentry-dotnet/pull/2793)) +- `Ben.Demystifier` is not available as it only runs in JIT mode. +- WinUI applications: When publishing Native AOT, Sentry isn't able to automatically register an unhandled exception handler because that relies on reflection. You'll need to [register the unhandled event handler manually](https://github.com/getsentry/sentry-dotnet/issues/2778) instead. +- For Azure Functions Workers, when AOT/Trimming is enabled we can't use reflection to read route data from the HttpTrigger so the route name will always be `/api/` ([#2920](https://github.com/getsentry/sentry-dotnet/pull/2920)) + +### Fixes + +- Native integration logging on macOS ([#3079](https://github.com/getsentry/sentry-dotnet/pull/3079)) +- The scope transaction is now correctly set for Otel transactions ([#3072](https://github.com/getsentry/sentry-dotnet/pull/3072)) +- Fixed an issue with tag values in metrics not being properly serialized ([#3065](https://github.com/getsentry/sentry-dotnet/pull/3065)) +- Moved the binding to MAUI events for breadcrumb creation from `WillFinishLaunching` to `FinishedLaunching`. This delays the initial instantiation of `app`. ([#3057](https://github.com/getsentry/sentry-dotnet/pull/3057)) +- The SDK no longer adds the `WinUIUnhandledExceptionIntegration` on non-Windows platforms ([#3055](https://github.com/getsentry/sentry-dotnet/pull/3055)) +- Stop Sentry for MacCatalyst from creating `default.profraw` in the app bundle using xcodebuild archive to build sentry-cocoa ([#2960](https://github.com/getsentry/sentry-dotnet/pull/2960)) +- Workaround a .NET 8 NativeAOT crash on transaction finish. ([#2943](https://github.com/getsentry/sentry-dotnet/pull/2943)) +- Reworked automatic breadcrumb creation for MAUI. ([#2900](https://github.com/getsentry/sentry-dotnet/pull/2900)) + - The SDK no longer uses reflection to bind to all public element events. This also fixes issues where the SDK would consume third-party events. + - Added `CreateElementEventsBreadcrumbs` to the SentryMauiOptions to allow users to opt-in automatic breadcrumb creation for `BindingContextChanged`, `ChildAdded`, `ChildRemoved`, and `ParentChanged` on `Element`. + - Reduced amount of automatic breadcrumbs by limiting the number of bindings created in `VisualElement`, `Window`, `Shell`, `Page`, and `Button`. +- Fixed Sentry SDK has not been initialized when using ASP.NET Core, Serilog, and OpenTelemetry ([#2911](https://github.com/getsentry/sentry-dotnet/pull/2911)) +- Android native symbol upload ([#2876](https://github.com/getsentry/sentry-dotnet/pull/2876)) +- `Sentry.Serilog` no longer throws if a disabled DSN is provided when initializing Sentry via the Serilog integration ([#2883](https://github.com/getsentry/sentry-dotnet/pull/2883)) +- Don't add WinUI exception integration on mobile platforms ([#2821](https://github.com/getsentry/sentry-dotnet/pull/2821)) +- `Transactions` are now getting enriched by the client instead of the hub ([#2838](https://github.com/getsentry/sentry-dotnet/pull/2838)) +- Fixed an issue when using the SDK together with OpenTelemetry `1.5.0` and newer where the SDK would create transactions for itself. The fix is backward compatible. ([#3001](https://github.com/getsentry/sentry-dotnet/pull/3001)) + +### Dependencies + +- Upgraded to NLog version 5. ([#2697](https://github.com/getsentry/sentry-dotnet/pull/2697)) +- Integrate `sentry-native` as a static library in Native AOT builds to enable symbolication. ([#2704](https://github.com/getsentry/sentry-dotnet/pull/2704)) + + +- Bump Cocoa SDK from v8.16.1 to v8.19.0 ([#2910](https://github.com/getsentry/sentry-dotnet/pull/2910), [#2936](https://github.com/getsentry/sentry-dotnet/pull/2936), [#2972](https://github.com/getsentry/sentry-dotnet/pull/2972), [#3005](https://github.com/getsentry/sentry-dotnet/pull/3005), [#3084](https://github.com/getsentry/sentry-dotnet/pull/3084)) + - [changelog](https://github.com/getsentry/sentry-cocoa/blob/main/CHANGELOG.md#8190) + - [diff](https://github.com/getsentry/sentry-cocoa/compare/8.16.1...8.19.0) +- Bump Java SDK from v6.34.0 to v7.3.0 ([#2932](https://github.com/getsentry/sentry-dotnet/pull/2932), [#2979](https://github.com/getsentry/sentry-dotnet/pull/2979), [#3049](https://github.com/getsentry/sentry-dotnet/pull/3049), (https://github.com/getsentry/sentry-dotnet/pull/3098)) + - [changelog](https://github.com/getsentry/sentry-java/blob/main/CHANGELOG.md#730) + - [diff](https://github.com/getsentry/sentry-java/compare/6.34.0...7.3.0) +- Bump Native SDK from v0.6.5 to v0.6.7 ([#2914](https://github.com/getsentry/sentry-dotnet/pull/2914), [#3029](https://github.com/getsentry/sentry-dotnet/pull/3029)) + - [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#070) + - [diff](https://github.com/getsentry/sentry-native/compare/0.6.5...0.7.0) +- Bump CLI from v2.21.5 to v2.27.0 ([#2901](https://github.com/getsentry/sentry-dotnet/pull/2901), [#2915](https://github.com/getsentry/sentry-dotnet/pull/2915), [#2956](https://github.com/getsentry/sentry-dotnet/pull/2956), [#2985](https://github.com/getsentry/sentry-dotnet/pull/2985), [#2999](https://github.com/getsentry/sentry-dotnet/pull/2999), [#3012](https://github.com/getsentry/sentry-dotnet/pull/3012), [#3030](https://github.com/getsentry/sentry-dotnet/pull/3030), [#3059](https://github.com/getsentry/sentry-dotnet/pull/3059), [#3062](https://github.com/getsentry/sentry-dotnet/pull/3062), [#3073](https://github.com/getsentry/sentry-dotnet/pull/3073), [#3099](https://github.com/getsentry/sentry-dotnet/pull/3099)) + - [changelog](https://github.com/getsentry/sentry-cli/blob/master/CHANGELOG.md#2270) + - [diff](https://github.com/getsentry/sentry-cli/compare/2.21.5...2.27.0) + +## 3.41.4 + +### Fixes + +- Fixed an issue when using the SDK together with Open Telemetry `1.5.0` and newer where the SDK would create transactions for itself. The fix is backward compatible. ([#3001](https://github.com/getsentry/sentry-dotnet/pull/3001)) diff --git a/plugins/changelog/testdata/sentry-go-0.31.0-CHANGELOG.md b/plugins/changelog/testdata/sentry-go-0.31.0-CHANGELOG.md new file mode 100644 index 0000000..6e70370 --- /dev/null +++ b/plugins/changelog/testdata/sentry-go-0.31.0-CHANGELOG.md @@ -0,0 +1,72 @@ +## 0.31.0 + +### Breaking Changes + +- Remove support for metrics. Read more about the end of the Metrics beta [here](https://sentry.zendesk.com/hc/en-us/articles/26369339769883-Metrics-Beta-Ended-on-October-7th). ([#914](https://github.com/getsentry/sentry-go/pull/914)) + +- Remove support for profiling. ([#915](https://github.com/getsentry/sentry-go/pull/915)) + +- Remove `Segment` field from the `User` struct. This field is no longer used in the Sentry product. ([#928](https://github.com/getsentry/sentry-go/pull/928)) + +- Every integration is now a separate module, reducing the binary size and number of dependencies. Once you update `sentry-go` to latest version, you'll need to `go get` the integration you want to use. For example, if you want to use the `echo` integration, you'll need to run `go get github.com/getsentry/sentry-go/echo` ([#919](github.com/getsentry/sentry-go/pull/919)). + +### Features + +Add the ability to override `hub` in `context` for integrations that use custom context. ([#931](https://github.com/getsentry/sentry-go/pull/931)) + +- Add `HubProvider` Hook for `sentrylogrus`, enabling dynamic Sentry hub allocation for each log entry or goroutine. ([#936](https://github.com/getsentry/sentry-go/pull/936)) + +This change enhances compatibility with Sentry's recommendation of using separate hubs per goroutine. To ensure a separate Sentry hub for each goroutine, configure the `HubProvider` like this: + +```go +hook, err := sentrylogrus.New(nil, sentry.ClientOptions{}) +if err != nil { + log.Fatalf("Failed to initialize Sentry hook: %v", err) +} + +// Set a custom HubProvider to generate a new hub for each goroutine or log entry +hook.SetHubProvider(func() *sentry.Hub { + client, _ := sentry.NewClient(sentry.ClientOptions{}) + return sentry.NewHub(client, sentry.NewScope()) +}) + +logrus.AddHook(hook) +``` + +### Bug Fixes + +- Add support for closing worker goroutines started by the `HTTPTranport` to prevent goroutine leaks. ([#894](https://github.com/getsentry/sentry-go/pull/894)) + +```go +client, _ := sentry.NewClient() +defer client.Close() +``` + +Worker can be also closed by calling `Close()` method on the `HTTPTransport` instance. `Close` should be called after `Flush` and before terminating the program otherwise some events may be lost. + +```go +transport := sentry.NewHTTPTransport() +defer transport.Close() +``` + +### Misc + +- Bump [gin-gonic/gin](https://github.com/gin-gonic/gin) to v1.9.1. ([#946](https://github.com/getsentry/sentry-go/pull/946)) + +## 0.30.0 + +The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.30.0. + +### Features + +- Add `sentryzerolog` integration ([#857](https://github.com/getsentry/sentry-go/pull/857)) +- Add `sentryslog` integration ([#865](https://github.com/getsentry/sentry-go/pull/865)) +- Always set Mechanism Type to generic ([#896](https://github.com/getsentry/sentry-go/pull/897)) + +### Bug Fixes + +- Prevent panic in `fasthttp` and `fiber` integration in case a malformed URL has to be parsed ([#912](https://github.com/getsentry/sentry-go/pull/912)) + +### Misc + +Drop support for Go 1.18, 1.19 and 1.20. The currently supported Go versions are the last 3 stable releases: 1.23, 1.22 and 1.21. diff --git a/plugins/changelog/testdata/sentry-javascript-changelog-10.0.0-CHANGELOG.md b/plugins/changelog/testdata/sentry-javascript-changelog-10.0.0-CHANGELOG.md new file mode 100644 index 0000000..8b19021 --- /dev/null +++ b/plugins/changelog/testdata/sentry-javascript-changelog-10.0.0-CHANGELOG.md @@ -0,0 +1,138 @@ +## 10.0.0 + +Version `10.0.0` marks a release of the Sentry JavaScript SDKs that contains breaking changes. The goal of this release is to primarily upgrade the underlying OpenTelemetry dependencies to v2 with minimal breaking changes. + +### How To Upgrade + +Please carefully read through the migration guide in the Sentry docs on how to upgrade from version 9 to version 10. Make sure to select your specific platform/framework in the top left corner: https://docs.sentry.io/platforms/javascript/migration/v9-to-v10/ + +A comprehensive migration guide outlining all changes can be found within the Sentry JavaScript SDK Repository: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md + +### Breaking Changes + +- feat!: Bump to OpenTelemetry v2 ([#16872](https://github.com/getsentry/sentry-javascript/pull/16872)) +- feat(browser)!: Remove FID web vital collection ([#17076](https://github.com/getsentry/sentry-javascript/pull/17076)) +- feat(core)!: Remove `BaseClient` ([#17071](https://github.com/getsentry/sentry-javascript/pull/17071)) +- feat(core)!: Remove `enableLogs` and `beforeSendLog` experimental options ([#17063](https://github.com/getsentry/sentry-javascript/pull/17063)) +- feat(core)!: Remove `hasTracingEnabled` ([#17072](https://github.com/getsentry/sentry-javascript/pull/17072)) +- feat(core)!: Remove deprecated logger ([#17061](https://github.com/getsentry/sentry-javascript/pull/17061)) +- feat(replay)!: Promote `_experiments.autoFlushOnFeedback` option as default ([#17220](https://github.com/getsentry/sentry-javascript/pull/17220)) +- chore(deps)!: Bump bundler plugins to v4 ([#17089](https://github.com/getsentry/sentry-javascript/pull/17089)) + +### Other Changes + +- feat(astro): Implement Request Route Parametrization for Astro 5 ([#17105](https://github.com/getsentry/sentry-javascript/pull/17105)) +- feat(astro): Parametrize routes on client-side ([#17133](https://github.com/getsentry/sentry-javascript/pull/17133)) +- feat(aws): Add `SentryNodeServerlessSDKv10` v10 AWS Lambda Layer ([#17069](https://github.com/getsentry/sentry-javascript/pull/17069)) +- feat(aws): Create unified lambda layer for ESM and CJS ([#17012](https://github.com/getsentry/sentry-javascript/pull/17012)) +- feat(aws): Detect SDK source for AWS Lambda layer ([#17128](https://github.com/getsentry/sentry-javascript/pull/17128)) +- feat(core): Add missing openai tool calls attributes ([#17226](https://github.com/getsentry/sentry-javascript/pull/17226)) +- feat(core): Add shared `flushIfServerless` function ([#17177](https://github.com/getsentry/sentry-javascript/pull/17177)) +- feat(core): Implement `strictTraceContinuation` ([#16313](https://github.com/getsentry/sentry-javascript/pull/16313)) +- feat(core): MCP server instrumentation without breaking Miniflare ([#16817](https://github.com/getsentry/sentry-javascript/pull/16817)) +- feat(deps): bump @prisma/instrumentation from 6.11.1 to 6.12.0 ([#17117](https://github.com/getsentry/sentry-javascript/pull/17117)) +- feat(meta): Unify detection of serverless environments and add Cloud Run ([#17168](https://github.com/getsentry/sentry-javascript/pull/17168)) +- feat(nestjs): Switch to OTel core instrumentation ([#17068](https://github.com/getsentry/sentry-javascript/pull/17068)) +- feat(node-native): Upgrade `@sentry-internal/node-native-stacktrace` to `0.2.2` ([#17207](https://github.com/getsentry/sentry-javascript/pull/17207)) +- feat(node): Add `shouldHandleError` option to `fastifyIntegration` ([#16845](https://github.com/getsentry/sentry-javascript/pull/16845)) +- feat(node): Add firebase integration ([#16719](https://github.com/getsentry/sentry-javascript/pull/16719)) +- feat(node): Instrument stream responses for openai ([#17110](https://github.com/getsentry/sentry-javascript/pull/17110)) +- feat(react-router): Add `createSentryHandleError` ([#17235](https://github.com/getsentry/sentry-javascript/pull/17235)) +- feat(react-router): Automatically flush on serverless for loaders/actions ([#17234](https://github.com/getsentry/sentry-javascript/pull/17234)) +- feat(react-router): Automatically flush on Vercel for request handlers ([#17232](https://github.com/getsentry/sentry-javascript/pull/17232)) +- fix(astro): Construct parametrized route during runtime ([#17190](https://github.com/getsentry/sentry-javascript/pull/17190)) +- fix(aws): Add layer build output to nx cache ([#17148](https://github.com/getsentry/sentry-javascript/pull/17148)) +- fix(aws): Fix path to packages directory ([#17112](https://github.com/getsentry/sentry-javascript/pull/17112)) +- fix(aws): Resolve all Sentry packages to local versions in layer build ([#17106](https://github.com/getsentry/sentry-javascript/pull/17106)) +- fix(aws): Use file link in dependency version ([#17111](https://github.com/getsentry/sentry-javascript/pull/17111)) +- fix(cloudflare): Allow non uuid workflow instance IDs ([#17121](https://github.com/getsentry/sentry-javascript/pull/17121)) +- fix(cloudflare): Avoid turning DurableObject sync methods into async ([#17184](https://github.com/getsentry/sentry-javascript/pull/17184)) +- fix(core): Fix OpenAI SDK private field access by binding non-instrumented fns ([#17163](https://github.com/getsentry/sentry-javascript/pull/17163)) +- fix(core): Fix operation name for openai responses API ([#17206](https://github.com/getsentry/sentry-javascript/pull/17206)) +- fix(core): Update ai.response.object to gen_ai.response.object ([#17153](https://github.com/getsentry/sentry-javascript/pull/17153)) +- fix(nextjs): Flush in route handlers ([#17223](https://github.com/getsentry/sentry-javascript/pull/17223)) +- fix(nextjs): Handle async params in url extraction ([#17162](https://github.com/getsentry/sentry-javascript/pull/17162)) +- fix(nextjs): Update stackframe calls for next v15.5 ([#17156](https://github.com/getsentry/sentry-javascript/pull/17156)) +- fix(node): Add mechanism to `fastifyIntegration` error handler ([#17208](https://github.com/getsentry/sentry-javascript/pull/17208)) +- fix(node): Ensure tool errors for `vercelAiIntegration` have correct trace connected ([#17132](https://github.com/getsentry/sentry-javascript/pull/17132)) +- fix(node): Fix exports for openai instrumentation ([#17238](https://github.com/getsentry/sentry-javascript/pull/17238)) +- fix(node): Handle stack traces with data URI filenames ([#17218](https://github.com/getsentry/sentry-javascript/pull/17218)) +- fix(react): Memoize wrapped component to prevent rerenders ([#17230](https://github.com/getsentry/sentry-javascript/pull/17230)) +- fix(remix): Ensure source maps upload fails silently if Sentry CLI fails ([#17082](https://github.com/getsentry/sentry-javascript/pull/17082)) +- fix(replay): Fix re-sampled sessions after a click ([#17008](https://github.com/getsentry/sentry-javascript/pull/17008)) +- fix(svelte): Do not insert preprocess code in script module in Svelte 5 ([#17114](https://github.com/getsentry/sentry-javascript/pull/17114)) +- fix(sveltekit): Align error status filtering and mechanism in `handleErrorWithSentry` ([#17157](https://github.com/getsentry/sentry-javascript/pull/17157)) + +Work in this release was contributed by @richardjelinek-fastest. Thank you for your contribution! + +## 9.40.0 + +### Important Changes + +- **feat(browser): Add debugId sync APIs between web worker and main thread ([#16981](https://github.com/getsentry/sentry-javascript/pull/16981))** + +This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files: + +- `webWorkerIntegration({worker})` to be used in the main thread +- `registerWebWorker({self})` to be used in the web worker + +```js +// main.js +Sentry.init({...}) + +const worker = new MyWorker(...); + +Sentry.addIntegration(Sentry.webWorkerIntegration({ worker })); + +worker.addEventListener('message', e => {...}); +``` + +```js +// worker.js +Sentry.registerWebWorker({ self }); + +self.postMessage(...); +``` + +- **feat(core): Deprecate logger in favor of debug ([#17040](https://github.com/getsentry/sentry-javascript/pull/17040))** + +The internal SDK `logger` export from `@sentry/core` has been deprecated in favor of the `debug` export. `debug` only exposes `log`, `warn`, and `error` methods but is otherwise identical to `logger`. Note that this deprecation does not affect the `logger` export from other packages (like `@sentry/browser` or `@sentry/node`) which is used for Sentry Logging. + +```js +import { logger, debug } from '@sentry/core'; + +// before +logger.info('This is an info message'); + +// after +debug.log('This is an info message'); +``` + +- **feat(node): Add OpenAI integration ([#17022](https://github.com/getsentry/sentry-javascript/pull/17022))** + +This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments: + +- `client.chat.completions.create()` - For chat-based completions +- `client.responses.create()` - For the responses API + +```js +// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options + +Sentry.init({ + dsn: '__DSN__', + integrations: [ + Sentry.openAIIntegration({ + recordInputs: true, // Force recording prompts + recordOutputs: true, // Force recording responses + }), + ], +}); +``` + +### Other Changes + +- feat(node-core): Expand `@opentelemetry/instrumentation` range to cover `0.203.0` ([#17043](https://github.com/getsentry/sentry-javascript/pull/17043)) +- fix(cloudflare): Ensure errors get captured from durable objects ([#16838](https://github.com/getsentry/sentry-javascript/pull/16838)) +- fix(sveltekit): Ensure server errors from streamed responses are sent ([#17044](https://github.com/getsentry/sentry-javascript/pull/17044)) + +Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions! diff --git a/plugins/changelog/testdata/sentry-python-changelog-2.0.0-CHANGELOG.md b/plugins/changelog/testdata/sentry-python-changelog-2.0.0-CHANGELOG.md new file mode 100644 index 0000000..86d5998 --- /dev/null +++ b/plugins/changelog/testdata/sentry-python-changelog-2.0.0-CHANGELOG.md @@ -0,0 +1,267 @@ +## 2.0.0 + +This is the first major update in a *long* time! + +We dropped support for some ancient languages and frameworks (Yes, Python 2.7 is no longer supported). Additionally we refactored a big part of the foundation of the SDK (how data inside the SDK is handled). + +We hope you like it! + +For a shorter version of what you need to do, to upgrade to Sentry SDK 2.0 see: https://docs.sentry.io/platforms/python/migration/1.x-to-2.x + +### New Features + +- Additional integrations will now be activated automatically if the SDK detects the respective package is installed: Ariadne, ARQ, asyncpg, Chalice, clickhouse-driver, GQL, Graphene, huey, Loguru, PyMongo, Quart, Starlite, Strawberry. +- Added new API for custom instrumentation: `new_scope`, `isolation_scope`. See the [Deprecated](#deprecated) section to see how they map to the existing APIs. + +### Changed +(These changes are all backwards-incompatible. **Breaking Change** (if you are just skimming for that phrase)) + +- The Pyramid integration will not capture errors that might happen in `authenticated_userid()` in a custom `AuthenticationPolicy` class. +- The method `need_code_loation` of the `MetricsAggregator` was renamed to `need_code_location`. +- The `BackgroundWorker` thread used to process events was renamed from `raven-sentry.BackgroundWorker` to `sentry-sdk.BackgroundWorker`. +- The `reraise` function was moved from `sentry_sdk._compat` to `sentry_sdk.utils`. +- The `_ScopeManager` was moved from `sentry_sdk.hub` to `sentry_sdk.scope`. +- Moved the contents of `tracing_utils_py3.py` to `tracing_utils.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`. +- The actual implementation of `get_current_span` was moved to `sentry_sdk.tracing_utils`. `sentry_sdk.get_current_span` is still accessible as part of the top-level API. +- `sentry_sdk.tracing_utils.add_query_source()`: Removed the `hub` parameter. It is not necessary anymore. +- `sentry_sdk.tracing_utils.record_sql_queries()`: Removed the `hub` parameter. It is not necessary anymore. +- `sentry_sdk.tracing_utils.get_current_span()` does now take a `scope` instead of a `hub` as parameter. +- `sentry_sdk.tracing_utils.should_propagate_trace()` now takes a `Client` instead of a `Hub` as first parameter. +- `sentry_sdk.utils.is_sentry_url()` now takes a `Client` instead of a `Hub` as first parameter. +- `sentry_sdk.utils._get_contextvars` does not return a tuple with three values, but a tuple with two values. The `copy_context` was removed. +- If you create a transaction manually and later mutate the transaction in a `configure_scope` block this does not work anymore. Here is a recipe on how to change your code to make it work: + Your existing implementation: + ```python + transaction = sentry_sdk.transaction(...) + + # later in the code execution: + + with sentry_sdk.configure_scope() as scope: + scope.set_transaction_name("new-transaction-name") + ``` + + needs to be changed to this: + ```python + transaction = sentry_sdk.transaction(...) + + # later in the code execution: + + scope = sentry_sdk.Scope.get_current_scope() + scope.set_transaction_name("new-transaction-name") + ``` +- The classes listed in the table below are now abstract base classes. Therefore, they can no longer be instantiated. Subclasses can only be instantiated if they implement all of the abstract methods. +
+ Show table + + | Class | Abstract methods | + | ------------------------------------- | -------------------------------------- | + | `sentry_sdk.integrations.Integration` | `setup_once` | + | `sentry_sdk.metrics.Metric` | `add`, `serialize_value`, and `weight` | + | `sentry_sdk.profiler.Scheduler` | `setup` and `teardown` | + | `sentry_sdk.transport.Transport` | `capture_envelope` | + +
+ +### Removed +(These changes are all backwards-incompatible. **Breaking Change** (if you are just skimming for that phrase)) + +- Removed support for Python 2 and Python 3.5. The SDK now requires at least Python 3.6. +- Removed support for Celery 3.\*. +- Removed support for Django 1.8, 1.9, 1.10. +- Removed support for Flask 0.\*. +- Removed support for gRPC < 1.39. +- Removed support for Tornado < 6. +- Removed `last_event_id()` top level API. The last event ID is still returned by `capture_event()`, `capture_exception()` and `capture_message()` but the top level API `sentry_sdk.last_event_id()` has been removed. +- Removed support for sending events to the `/store` endpoint. Everything is now sent to the `/envelope` endpoint. If you're on SaaS you don't have to worry about this, but if you're running Sentry yourself you'll need version `20.6.0` or higher of self-hosted Sentry. +- The deprecated `with_locals` configuration option was removed. Use `include_local_variables` instead. See https://docs.sentry.io/platforms/python/configuration/options/#include-local-variables. +- The deprecated `request_bodies` configuration option was removed. Use `max_request_body_size`. See https://docs.sentry.io/platforms/python/configuration/options/#max-request-body-size. +- Removed support for `user.segment`. It was also removed from the trace header as well as from the dynamic sampling context. +- Removed support for the `install` method for custom integrations. Please use `setup_once` instead. +- Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead. +- Removed `sentry_sdk.tracing.Transaction.new_span`. Use `sentry_sdk.tracing.Transaction.start_child` instead. +- Removed support for creating transactions via `sentry_sdk.tracing.Span(transaction=...)`. To create a transaction, please use `sentry_sdk.tracing.Transaction(name=...)`. +- Removed `sentry_sdk.utils.Auth.store_api_url`. +- `sentry_sdk.utils.Auth.get_api_url`'s now accepts a `sentry_sdk.consts.EndpointType` enum instead of a string as its only parameter. We recommend omitting this argument when calling the function, since the parameter's default value is the only possible `sentry_sdk.consts.EndpointType` value. The parameter exists for future compatibility. +- Removed `tracing_utils_py2.py`. The `start_child_span_decorator` is now in `sentry_sdk.tracing_utils`. +- Removed the `sentry_sdk.profiler.Scheduler.stop_profiling` method. Any calls to this method can simply be removed, since this was a no-op method. + +### Deprecated + +- Using the `Hub` directly as well as using hub-based APIs has been deprecated. Where available, use [the top-level API instead](sentry_sdk/api.py); otherwise use the [scope API](sentry_sdk/scope.py) or the [client API](sentry_sdk/client.py). + + Before: + + ```python + with hub.start_span(...): + # do something + ``` + + After: + + ```python + import sentry_sdk + + with sentry_sdk.start_span(...): + # do something + ``` + +- Hub cloning is deprecated. + + Before: + + ```python + with Hub(Hub.current) as hub: + # do something with the cloned hub + ``` + + After: + + ```python + import sentry_sdk + + with sentry_sdk.isolation_scope() as scope: + # do something with the forked scope + ``` + +- `configure_scope` is deprecated. Use the new isolation scope directly via `Scope.get_isolation_scope()` instead. + + Before: + + ```python + with configure_scope() as scope: + # do something with `scope` + ``` + + After: + + ```python + from sentry_sdk.scope import Scope + + scope = Scope.get_isolation_scope() + # do something with `scope` + ``` + +- `push_scope` is deprecated. Use the new `new_scope` context manager to fork the necessary scopes. + + Before: + + ```python + with push_scope() as scope: + # do something with `scope` + ``` + + After: + + ```python + import sentry_sdk + + with sentry_sdk.new_scope() as scope: + # do something with `scope` + ``` + +- Accessing the client via the hub has been deprecated. Use the top-level `sentry_sdk.get_client()` to get the current client. +- `profiler_mode` and `profiles_sample_rate` have been deprecated as `_experiments` options. Use them as top level options instead: + ```python + sentry_sdk.init( + ..., + profiler_mode="thread", + profiles_sample_rate=1.0, + ) + ``` +- Deprecated `sentry_sdk.transport.Transport.capture_event`. Please use `sentry_sdk.transport.Transport.capture_envelope`, instead. +- Passing a function to `sentry_sdk.init`'s `transport` keyword argument has been deprecated. If you wish to provide a custom transport, please pass a `sentry_sdk.transport.Transport` instance or a subclass. +- The parameter `propagate_hub` in `ThreadingIntegration()` was deprecated and renamed to `propagate_scope`. + +## 1.45.0 + +This is the final 1.x release for the forseeable future. Development will continue on the 2.x release line. The first 2.x version will be available in the next few weeks. + +### Various fixes & improvements + +- Allow to upsert monitors (#2929) by @sentrivana + + It's now possible to provide `monitor_config` to the `monitor` decorator/context manager directly: + + ```python + from sentry_sdk.crons import monitor + + # All keys except `schedule` are optional + monitor_config = { + "schedule": {"type": "crontab", "value": "0 0 * * *"}, + "timezone": "Europe/Vienna", + "checkin_margin": 10, + "max_runtime": 10, + "failure_issue_threshold": 5, + "recovery_threshold": 5, + } + + @monitor(monitor_slug='', monitor_config=monitor_config) + def tell_the_world(): + print('My scheduled task...') + ``` + + Check out [the cron docs](https://docs.sentry.io/platforms/python/crons/) for details. + +- Add Django `signals_denylist` to filter signals that are attached to by `signals_spans` (#2758) by @lieryan + + If you want to exclude some Django signals from performance tracking, you can use the new `signals_denylist` Django option: + + ```python + import django.db.models.signals + import sentry_sdk + + sentry_sdk.init( + ... + integrations=[ + DjangoIntegration( + ... + signals_denylist=[ + django.db.models.signals.pre_init, + django.db.models.signals.post_init, + ], + ), + ], + ) + ``` + +- `increment` for metrics (#2588) by @mitsuhiko + + `increment` and `inc` are equivalent, so you can pick whichever you like more. + +- Add `value`, `unit` to `before_emit_metric` (#2958) by @sentrivana + + If you add a custom `before_emit_metric`, it'll now accept 4 arguments (the `key`, `value`, `unit` and `tags`) instead of just `key` and `tags`. + + ```python + def before_emit(key, value, unit, tags): + if key == "removed-metric": + return False + tags["extra"] = "foo" + del tags["release"] + return True + + sentry_sdk.init( + ... + _experiments={ + "before_emit_metric": before_emit, + } + ) + ``` + +- Remove experimental metric summary options (#2957) by @sentrivana + + The `_experiments` options `metrics_summary_sample_rate` and `should_summarize_metric` have been removed. + +- New normalization rules for metric keys, names, units, tags (#2946) by @sentrivana +- Change `data_category` from `statsd` to `metric_bucket` (#2954) by @cleptric +- Accessing `__mro__` might throw a `ValueError` (#2952) by @sentrivana +- Suppress prompt spawned by subprocess when using `pythonw` (#2936) by @collinbanko +- Handle `None` in GraphQL query #2715 (#2762) by @czyber +- Do not send "quiet" Sanic exceptions to Sentry (#2821) by @hamedsh +- Implement `metric_bucket` rate limits (#2933) by @cleptric +- Fix type hints for `monitor` decorator (#2944) by @szokeasaurusrex +- Remove deprecated `typing` imports in crons (#2945) by @szokeasaurusrex +- Make `monitor_config` a `TypedDict` (#2931) by @sentrivana +- Add `devenv-requirements.txt` and update env setup instructions (#2761) by @arr-ee +- Bump `types-protobuf` from `4.24.0.20240311` to `4.24.0.20240408` (#2941) by @dependabot +- Disable Codecov check run annotations (#2537) by @eliatcodecov diff --git a/providers/sentry-sdks.md b/providers/sentry-sdks.md new file mode 100644 index 0000000..842041d --- /dev/null +++ b/providers/sentry-sdks.md @@ -0,0 +1,35 @@ +# Sentry SDKs (`sentry/python-changelog`, `sentry/javascript-changelog`, `sentry/go`, `sentry/dotnet`) + +## What it watches + +Names removed, renamed or deprecated in each release of Sentry's Python, JavaScript, Go and .NET SDKs, from that release's section of the SDK's `CHANGELOG.md` at its tag. One `package_release` event per bullet that names what it changes plainly. Sentry's API is a separate source (`sentry/api`). + +Kind: `changelog` (`plugins/changelog`, `sdks.go`). + +| Source | Package | Releases listed from | Tag | +|---|---|---|---| +| `sentry/python-changelog` | `pypi:sentry-sdk` | PyPI | `X.Y.Z` | +| `sentry/javascript-changelog` | `npm:@sentry/node`, `npm:@sentry/browser` (released together) | npm (`@sentry/node`) | `X.Y.Z` | +| `sentry/go` | `go:github.com/getsentry/sentry-go` | the repo's `vX.Y.Z` tags | `vX.Y.Z` | +| `sentry/dotnet` | `nuget:Sentry` | the repo's `X.Y.Z` tags | `X.Y.Z` | + +## Why this source + +- **Source:** https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md, https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md, https://github.com/getsentry/sentry-go/blob/master/CHANGELOG.md, https://github.com/getsentry/sentry-dotnet/blob/main/CHANGELOG.md, each read raw at the release's tag; checked on 2026-11-20. +- **Why this one:** Sentry writes every major's removals into the changelog itself, under "Removed" / "Breaking Changes" / "Deprecations" headings or as conventional-commit bullets (`feat(core)!: Remove \`BaseClient\``). The Python 2.0 changelog section carries the same "Removed" and "Deprecated" lists as its `MIGRATION_GUIDE.md`, so the guide isn't a second source (it would repeat the same events under another id). +- **Alternatives considered:** the migration guides (`MIGRATION_GUIDE.md`, `MIGRATION.md`: prose sections per major, mostly behavior and options; the JavaScript one's headings aren't plain enough to read without false positives); GitHub release notes (the same text). +- **Quote:** "Removed `sentry_sdk.tracing.Span.new_span`. Use `sentry_sdk.tracing.Span.start_child` instead." (sentry-python 2.0.0). + +## How the provider announces changes + +A major a year or so per SDK, announced with a migration guide and a changelog section; deprecations land in minors before. sentry-python has a 3.0.0rc1 tagged: its 3.0.0 section will be read when 3.0.0 is on PyPI. + +## What the plugin reads and ignores + +- Reads the release's section only; a bullet counts under a breaking, removal or deprecation heading, or marked `!` (conventional commits), when its first sentence names what it removes plainly. +- Drops (and logs): removed options and integrations' settings, dropped runtime and framework versions, behavior changes, and bullets that list names in prose. + +## Known gaps + +- Options passed to `init()` (`with_locals`, `enableLogs`) aren't symbols: their removal isn't an event. +- A release whose section is missing at its tag is skipped as nothing to read.