Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions plugins/changelog/sentry.go
Original file line number Diff line number Diff line change
@@ -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"}
)
12 changes: 12 additions & 0 deletions plugins/changelog/sentry_test.go
Original file line number Diff line number Diff line change
@@ -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"},
})
}
4 changes: 4 additions & 0 deletions plugins/changelog/testdata/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ Read with `Plugin{File: ...}` (`sdks.go`); `golden/<provider>-<source>.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

Expand Down
52 changes: 52 additions & 0 deletions plugins/changelog/testdata/golden/sentry-dotnet.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
26 changes: 26 additions & 0 deletions plugins/changelog/testdata/golden/sentry-go.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
Original file line number Diff line number Diff line change
@@ -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",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please check which package these removals belong to. Both bullets are feat(core)!, so they're removals from @sentry/core. These events, though, name @sentry/node, and the registration also claims npm:@sentry/browser, which no event ever carries.

If BaseClient and hasTracingEnabled were not exported from @sentry/node 9.x, these events tell @sentry/node users something that doesn't apply to them, and miss the users who import them from @sentry/core. Could you confirm against @sentry/[email protected]'s exports (its index.d.ts) and say what you found in the PR? If they weren't re-exported, the attribution needs fixing. One option is to cover npm:@sentry/core as well and set the package from the bullet's scope; the other is to drop (core)! bullets for this source.

"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"
}
]
194 changes: 194 additions & 0 deletions plugins/changelog/testdata/golden/sentry-python-changelog.json
Original file line number Diff line number Diff line change
@@ -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"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Wrong symbol in this event. tracing_utils_py2.py is a file name, not something code references. The removed module was sentry_sdk.tracing_utils_py2, so anything downstream that searches a repo for tracing_utils_py2.py will never match an import. It was also a Python‑2‑only internal module, and 2.0.0 drops Python 2 entirely, so no code that installs 2.0.0 can be using it.

I'd drop it. The simplest way is to have the shared classifier (classify.go) reject code spans that end in a file extension (.py, .ts, .go, …), log them as dropped, and then regenerate this golden with 7 events. If you'd rather keep it, the symbol should at least be tracing_utils_py2 (the module), and the PR should explain why the event is useful.

]
},
"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"
}
]
Loading
Loading