Repository navigation
chore: Merge tag '9.27.0' into v10-branch - #3968
Conversation
* feat(replay): Add HTTP request/response capture Adds opt-in capture of HTTP request/response headers and bodies for Session Replay network breadcrumbs, gated by enableReplayNetworkDetailsCapturing plus networkDetailAllowUrls/ networkDetailDenyUrls, scoped to Dart-only requests. NetworkDetailsCapture (Dart) attaches the captured data to the http breadcrumb, which the Android/iOS replay breadcrumb converters forward into the RRWebSpanEvent unchanged. Also syncs the network detail options into the native SentryReplayOptions at init so the SDK reports networkDetailHasUrls: true in the replay's options event - the Sentry frontend gates rendering of captured request/response detail on that flag, so without this sync the data would never show up in the dashboard despite being captured correctly. Co-Authored-By: Claude <[email protected]> * fix(replay): Scope HTTP detail capture to Android only iOS session replay doesn't yet forward captured request/response detail, so drop the unused iOS converter change and note the Android-only support in the option docs. Co-Authored-By: Claude <[email protected]> * fix(replay): Always forward fully-read response body If decoding the captured response body threw, captureResponse returned the original response whose stream was already drained by toBytes(), silently dropping the body for the caller. Forward the copied bytes regardless of whether the capture decode/truncate step succeeds. Co-Authored-By: Claude <[email protected]> * fix(replay): Gate network body capture behind sendDefaultPii Request/response bodies frequently contain PII, so only collect them when sendDefaultPii is enabled, matching the same gate used by FailedRequestClient. Also register a SentryFeatures constant and track it via options.sdk.addFeature so usage of this option shows up in SDK analytics, per the code guidelines. Co-Authored-By: Claude <[email protected]> * fix(replay): Gate custom headers behind sendDefaultPii too Custom header names configured via networkRequestHeaders/ networkResponseHeaders (e.g. Authorization, Cookie) were captured regardless of sendDefaultPii, only the default content-type-like headers should be unconditional. Also mirror the same gate in the Android native sync so setNetworkCaptureBodies and the custom header lists can't bypass the Dart-side privacy check. Co-Authored-By: Claude <[email protected]> * refactor(replay): Order NetworkDetailsCapture fields before ctor Reorders members to fields → constructor → public API → private helpers, per review feedback. Co-Authored-By: Claude <[email protected]> * refactor(replay)!: Remove enableReplayNetworkDetailsCapturing Only Cocoa needs a separate enable flag; gate purely on networkDetailAllowUrls being non-empty, matching other SDKs. Co-Authored-By: Claude <[email protected]> * fix(replay): Truncate captured bodies via bytes, not strings Avoids fully utf8-encoding the whole body just to check its size: _truncateBytes slices the Uint8List first, then decodes once. Also reads the request body via bodyBytes instead of the decoded body string. Co-Authored-By: Claude <[email protected]> * fix(replay): Skip oversized response bodies before reading Checks response.contentLength against maxBodySize upfront, avoiding buffering a body we already know will be discarded past the size we'd truncate it to anyway. Co-Authored-By: Claude <[email protected]> * fix(replay): Bound response body buffering to maxBodySize Reading via toBytes() buffered the entire response before truncating, so a large or unbounded chunked body (no Content-Length) was fully materialized in memory even though only maxBodySize is ever captured. Add bufferStreamPrefix, which reads only up to the cap and replays the rest of the stream lazily to the original caller. Co-Authored-By: Claude <[email protected]> * fix(replay): Bound single-chunk overshoot and oversized request bodies bufferStreamPrefix appended each chunk in full before checking the cap, so one chunk larger than maxBytes still buffered past it. Slice the overflowing chunk at the boundary and replay the remainder instead. Also align request body capture with the response path: skip attaching the body entirely when it's already known to exceed maxBodySize, rather than attaching a truncated fragment. Co-Authored-By: Claude <[email protected]> * fix(replay): Cancel source stream when replay forwarding stops early bufferStreamPrefix's replay() generator never cancelled the source StreamIterator if the forwarded stream was dropped or only partially consumed (e.g. an early-aborted response body), leaking the underlying subscription. Wrap the generator body in try/finally so the iterator is always cancelled on exit. Co-Authored-By: Claude <[email protected]> * fix(replay): Capture request headers after dispatch Request headers were snapshotted before `_client.send()`, so mutations made by clients further down the chain (e.g. TracingClient adding sentry-trace/baggage headers) were missed. Move the capture into the finally block so it reflects headers as actually sent. Co-Authored-By: Claude <[email protected]> * revert(replay): Drop stream-buffering optimization for response bodies Buenaflor asked to defer this to keep review scope focused on the replay-only breadcrumb-leak issue (#3900) instead. Reverts 27b7c5b, cb9bba3 (stream_utils.dart portion), and 7f5bcc5; keeps the request-body length-gate fix from cb9bba3, which is independent of the streaming optimization. This reverts the bufferStreamPrefix helper and restores response.stream.toBytes() in NetworkDetailsCapture.captureResponse. Co-Authored-By: Claude <[email protected]> * refactor(replay): Move HTTP capture options under options.replay Groups networkDetailAllowUrls/DenyUrls, networkCaptureBodies, and networkRequestHeaders/ResponseHeaders under a new SentryReplayOptions in core, with SentryFlutterOptions.replay extending it, instead of sitting flat on SentryOptions. Co-Authored-By: Claude <[email protected]> * refactor(replay): Move HTTP capture impl under sentry_flutter Network capture for replay is a Flutter-only concern; sentry (dart) now only exposes an internal NetworkDetailsCapture interface plus a nullable hook on SentryOptions, mirroring the Transport seam. Co-Authored-By: Claude <[email protected]> * fix(replay): Set capture feature flag lazily, not in ctor FlutterNetworkDetailsCapture is built in _initDefaultValues, before the user's optionsConfiguration runs, so networkDetailAllowUrls was always empty at construction and the feature flag never got set. Co-Authored-By: Claude <[email protected]> * fix(replay): Rethrow on response body capture failure Returning the original response after a failed stream read left callers reading an already-consumed stream, masking the real error behind a confusing "already listened to" failure. Co-Authored-By: Claude <[email protected]> * fix(replay): Stop breadcrumb timer before capturing body Stopping the stopwatch in `finally` meant response body capture (which can take arbitrarily long) was counted as request duration for allow-listed URLs, while uncaptured requests only measured time-to-headers. Stop it right after headers arrive instead. Co-Authored-By: Claude <[email protected]> * test(replay): Pin expected body length as a literal Asserting against FlutterNetworkDetailsCapture.maxBodySize makes the test tautological: it can't fail if that constant itself were wrong, since it's the same value the production truncation logic uses. Co-Authored-By: Claude <[email protected]> * fix(replay): Don't mark a successful request as an error A failure in captureResponse (e.g. reading the response stream for replay) was caught by the same handler as a failed _client.send, which set requestHadException and forced the http breadcrumb to error level even though the request itself succeeded. Only a transport-level failure should do that; a capture failure after a real response now leaves the breadcrumb level based on status code. Co-Authored-By: Claude <[email protected]> * fix(replay): Anchor breadcrumb timestamp to header arrival Breadcrumb.http derives start_timestamp/end_timestamp from its timestamp param, which defaulted to "now" at breadcrumb construction in the outer finally - after response body capture completes. Once requestDuration stopped covering that capture time, both timestamps drifted by however long capture took instead of anchoring to when headers actually arrived, shifting Session Replay network spans to the end of body download. Co-Authored-By: Claude <[email protected]> * fix(replay): Use injectable clock for breadcrumb timestamp getUtcDateTime() reads the system clock directly, unlike the rest of the SDK (e.g. Hub), which goes through SentryOptions.clock so it's fakeable in tests. Switch BreadcrumbClient to the same pattern and rewrite the timestamp regression test to assert call order via an injected clock instead of comparing against real wall-clock time. Co-Authored-By: Claude <[email protected]> * docs(flutter): Note networkDetailAllowUrls is Android-only Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
) * ci: bump csv from 3.3.5 to 3.3.6 in /packages/flutter/example/ios Bumps [csv](https://github.com/ruby/csv) from 3.3.5 to 3.3.6. - [Release notes](https://github.com/ruby/csv/releases) - [Changelog](https://github.com/ruby/csv/blob/main/NEWS.md) - [Commits](ruby/csv@v3.3.5...v3.3.6) --- updated-dependencies: - dependency-name: csv dependency-version: 3.3.6 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * ci(hooks): Harden SDK resolution and formatting Resolve the fvm SDK explicitly and pass it to melos via --sdk-path, so the hook formats and analyzes with the same toolchain as melos sdkPath and CI. `.fvm/` is gitignored, so linked worktrees often lack their own copy; fall back to the main worktree's via `git rev-parse --git-common-dir`, then to PATH. This drops the manual `.fvm` symlink step for new worktrees. The resolved SDK is logged. Stop `git add`-ing hook-applied formatting. Re-staging the whole file swept in hunks the author deliberately held back when only part of a file was staged, silently committing them. Format now runs with --set-exit-if-changed: the fix still lands in the working tree, but staging is left to the author and the commit aborts with guidance. The abort message points at `melos bootstrap`, since a stale .dart_tool from a branch with a different min SDK changes the language version dart_style formats against. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
* ci: bump ruby/setup-ruby from 1.317.0 to 1.321.0 Bumps [ruby/setup-ruby](https://github.com/ruby/setup-ruby) from 1.317.0 to 1.321.0. - [Release notes](https://github.com/ruby/setup-ruby/releases) - [Changelog](https://github.com/ruby/setup-ruby/blob/master/release.rb) - [Commits](ruby/setup-ruby@6e5d382...95ef2b0) --- updated-dependencies: - dependency-name: ruby/setup-ruby dependency-version: 1.321.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * ci: Skip Testflight upload for bot PRs The workflow triggers on pull requests that touch testflight.yml, so dependabot bumps to the actions pinned in it self-trigger a full signed build. Bot PRs have no access to the App Store Connect and match secrets, so that build can only fail. Guard the job on the PR author type, which covers dependabot, renovate and github-actions without maintaining a list of logins. Push and workflow_dispatch runs have no pull_request payload, so the condition leaves them untouched. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]>
The reusable getsentry/craft changelog-preview.yml workflow only uses the auto-provisioned GITHUB_TOKEN and doesn't declare any workflow_call secrets. Inheriting all repository secrets into it violates least privilege and isn't needed to make the workflow function. Unlike other repos with this same pattern, this workflow is active (not disabled) on GitHub, so it's fixed in place rather than removed. Refs VULN-2251 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…r-authorization-vulnerability-in-getsentrysentry-dart ci: Remove secrets: inherit from changelog-preview workflow
Refs VULN-2252 Co-Authored-By: Claude Sonnet 5 <[email protected]>
…-injection-vulnerability-in-getsentrysentry-dart ci: Replace curl-pipe-bash with action-setup-cli for Sentry CLI setup
…3948) Co-authored-by: GitHub <[email protected]>
Bumps [getsentry/craft/.github/workflows/changelog-preview.yml](https://github.com/getsentry/craft) from 2.26.14 to 2.28.0. - [Release notes](https://github.com/getsentry/craft/releases) - [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md) - [Commits](getsentry/craft@cdb657d...aeb1675) --- updated-dependencies: - dependency-name: getsentry/craft/.github/workflows/changelog-preview.yml dependency-version: 2.28.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* fix(dart): Handle HTTP 413 in HttpTransport Relay now returns 413 for oversized envelopes instead of 400, so SDKs can log an actionable, size-specific error. HttpTransport also mislabeled all HTTP 4xx/5xx error responses with the networkError discard reason; per the client-reports spec that reason is reserved for unretried connection failures, and HTTP error responses (413 included) should use send_error instead. Co-Authored-By: Claude <[email protected]> * test(dart): Assert on 413-specific log text, not "413" substring The generic non-200 log already contains "413" (statusCode), so the prior assertion passed even without the new size-limit log line. Co-Authored-By: Claude <[email protected]> --------- Co-authored-by: Claude <[email protected]>
Bumps [getsentry/craft](https://github.com/getsentry/craft) from 2.26.14 to 2.28.0. - [Release notes](https://github.com/getsentry/craft/releases) - [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md) - [Commits](getsentry/craft@cdb657d...aeb1675) --- updated-dependencies: - dependency-name: getsentry/craft dependency-version: 2.28.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
) Co-authored-by: GitHub <[email protected]>
Bumps [actions/setup-java](https://github.com/actions/setup-java) from 5.6.0 to 5.7.0. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](actions/setup-java@03ad4de...b6effb0) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: 5.7.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Giancarlo Buenaflor <[email protected]>
Co-authored-by: GitHub <[email protected]>
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@9c091bb...3d3c42e) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [dorny/paths-filter](https://github.com/dorny/paths-filter) from 4.0.2 to 4.0.3. - [Release notes](https://github.com/dorny/paths-filter/releases) - [Changelog](https://github.com/dorny/paths-filter/blob/master/CHANGELOG.md) - [Commits](dorny/paths-filter@7b450ff...ceb8a2b) --- updated-dependencies: - dependency-name: dorny/paths-filter dependency-version: 4.0.3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* ci: bump json from 2.20.0 to 2.21.2 in /metrics Bumps [json](https://github.com/ruby/json) from 2.20.0 to 2.21.2. - [Release notes](https://github.com/ruby/json/releases) - [Changelog](https://github.com/ruby/json/blob/master/CHANGES.md) - [Commits](ruby/json@v2.20.0...v2.21.2) --- updated-dependencies: - dependency-name: json dependency-version: 2.21.2 dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]> * test(dart): Remove unused catch stack variables Dart 3.13.0 reports unused_catch_stack for '_' stack trace variables. CI installs the latest stable SDK and runs the analyzer with fatal-warnings, so dart / analyze started failing. Drop the unused parameter. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]>
* chore: update metrics/flutter.properties to 3.47.0 * fix(flutter): Await TTFD report inside try block Dart 3.13.0 reports unawaited_return_in_try_block for the future returned from reportFullyDisplayed. Returning it skipped the catch, so tracker failures were never logged and escaped to callers as unhandled async errors. CI installs the latest stable SDK and runs the analyzer with fatal-warnings, so flutter / analyze started failing. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * ref(sqflite): Forward hub as a super parameter Dart 3.13.0 reports use_super_parameters for the hub parameter that SentryDatabase forwards to its super constructor. CI installs the latest stable SDK and runs the analyzer with fatal-infos, so sqflite / analyze started failing. Behavior is unchanged. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * build(flutter): Raise example Android toolchain Flutter 3.47.0 errors below Gradle 8.14.0, AGP 8.11.1 and KGP 2.2.20. The example pinned an older toolchain so the stable legs kept covering it, and the beta legs raised it through a script. Stable now enforces the same floor, so raise the example defaults and drop the beta-only script. Size Analysis pins its SDK from metrics/flutter.properties and never ran that script. KGP 2.2.20 dropped Kotlin language version 1.7, so the compatibility matrix floor moves to 1.8. min_version_test still covers Flutter 3.24.0 with its own app. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: GitHub <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]>
Bumps [getsentry/craft/.github/workflows/changelog-preview.yml](https://github.com/getsentry/craft) from 2.28.0 to 2.30.1. - [Release notes](https://github.com/getsentry/craft/releases) - [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md) - [Commits](getsentry/craft@aeb1675...cd1e829) --- updated-dependencies: - dependency-name: getsentry/craft/.github/workflows/changelog-preview.yml dependency-version: 2.30.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.7.2 to 1.8.0. - [Release notes](https://github.com/dart-lang/setup-dart/releases) - [Changelog](https://github.com/dart-lang/setup-dart/blob/main/CHANGELOG.md) - [Commits](dart-lang/setup-dart@65eb853...7654d45) --- updated-dependencies: - dependency-name: dart-lang/setup-dart dependency-version: 1.8.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [getsentry/craft](https://github.com/getsentry/craft) from 2.28.0 to 2.30.1. - [Release notes](https://github.com/getsentry/craft/releases) - [Changelog](https://github.com/getsentry/craft/blob/master/CHANGELOG.md) - [Commits](getsentry/craft@aeb1675...cd1e829) --- updated-dependencies: - dependency-name: getsentry/craft dependency-version: 2.30.1 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…3963) Co-authored-by: GitHub <[email protected]> Co-authored-by: Giancarlo Buenaflor <[email protected]>
Co-Authored-By: Cursor <[email protected]>
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog. This PR will not appear in the changelog. 🤖 This preview updates automatically when you update the PR. |
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## v10-branch #3968 +/- ##
=============================================
Coverage ? 88.26%
=============================================
Files ? 347
Lines ? 12406
Branches ? 0
=============================================
Hits ? 10950
Misses ? 1456
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. |
There was a problem hiding this comment.
Pull request overview
Merges the 9.27.0 release tag into v10-branch, resolving conflicts and porting a couple of release-line changes to v10-specific APIs (notably replay network details wiring and TTFD error-logging tests). It also includes dependency/version bumps and CI/workflow updates that came in with the release tag merge.
Changes:
- Add/port Session Replay network request/response detail capture (Dart-side capture + Android replay event mapping + JNI option bridging).
- Update
HttpTransportlost-event reporting for 4xx responses (newDiscardReason.sendError) and add explicit 413 logging/tests. - Update tooling/CI/workflows and assorted version pins as part of the merge.
Reviewed changes
Copilot reviewed 66 out of 68 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/sqflite/lib/src/sentry_database.dart | Constructor refactor using super.hub forwarding while keeping local hub setup. |
| packages/flutter/test/sentry_flutter_test.dart | Adds a TTFD failure test using SentryInternalLogger.configure instead of removed options.log. |
| packages/flutter/test/replay/network_details_capture_test.dart | New tests for allow/deny matching and request/response capture behavior. |
| packages/flutter/sentry-native/CMakeCache.txt | Bumps sentry-native version pin. |
| packages/flutter/pubspec.yaml | Moves http into runtime dependencies (from dev_dependencies). |
| packages/flutter/lib/src/sentry_replay_options.dart | Adds replay network detail capture configuration options + docs. |
| packages/flutter/lib/src/sentry_flutter.dart | Initializes networkDetailsCapture; fixes reportFullyDisplayed await/flow. |
| packages/flutter/lib/src/replay/network_details_capture.dart | New NetworkDetailsCapture implementation for Flutter Replay. |
| packages/flutter/lib/src/native/java/sentry_native_java.dart | Adds dartToJStringList helper for JNI 1.0 bindings. |
| packages/flutter/lib/src/native/java/sentry_native_java_init.dart | Bridges replay network detail options into native Android config. |
| packages/flutter/example/lib/screens/performance_screen.dart | Adds an example action/dialog to demonstrate captured http breadcrumb details. |
| packages/flutter/example/lib/main.dart | Configures replay network allowlist + extra request header capture in example init. |
| packages/flutter/example/ios/Gemfile.lock | Updates Ruby gem lock entry (csv). |
| packages/flutter/example/android/settings.gradle | Bumps default KGP/AGP versions used by the example. |
| packages/flutter/example/android/gradle/wrapper/gradle-wrapper.properties | Bumps Gradle wrapper version used by the example. |
| packages/flutter/example/android/gradle.properties | Adds Flutter migrator flags (builtInKotlin, newDsl). |
| packages/flutter/example/android/app/build.gradle | Updates Kotlin languageVersion default. |
| packages/flutter/android/src/main/kotlin/io/sentry/flutter/SentryFlutterReplayBreadcrumbConverter.kt | Forwards captured request/response detail maps into replay span events. |
| packages/flutter/android/build.gradle | Bumps io.sentry:sentry-android / sentry-spotlight versions. |
| packages/dart/test/transport/http_transport_test.dart | Updates expectations to sendError + adds 413 logging coverage. |
| packages/dart/test/sentry_exception_factory_test.dart | Simplifies unused stack-trace catch bindings. |
| packages/dart/test/hub_test.dart | Simplifies unused stack-trace catch bindings. |
| packages/dart/test/http_client/breadcrumb_client_test.dart | Adds coverage for attaching network details and timing semantics. |
| packages/dart/lib/src/transport/http_transport.dart | Logs 413 size-limit discard and records 4xx lost events as sendError. |
| packages/dart/lib/src/sentry_options.dart | Adds internal networkDetailsCapture hook for replay integration. |
| packages/dart/lib/src/http_client/sentry_http_client.dart | Wires networkDetailsCapture into BreadcrumbClient. |
| packages/dart/lib/src/http_client/network_details_capture.dart | Introduces internal NetworkDetailsCapture interface (replay-only hook). |
| packages/dart/lib/src/http_client/breadcrumb_client.dart | Captures request/response detail maps and uses header-arrival timing for breadcrumbs. |
| packages/dart/lib/src/constants.dart | Adds replayNetworkDetailsCapturing feature flag constant. |
| packages/dart/lib/src/client_reports/discarded_event.dart | Maps new discard reason to send_error outcome string. |
| packages/dart/lib/src/client_reports/discard_reason.dart | Adds DiscardReason.sendError. |
| metrics/Gemfile.lock | Updates Ruby gem lock entry (json). |
| metrics/flutter.properties | Updates the Flutter version pin used for metrics. |
| docs/sdk-versions.md | Adds 9.27.0 row to SDK versions table. |
| CHANGELOG.md | Adds a 9.27.0 section as part of the merge. |
| .github/workflows/web-example-ghpages.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/testflight.yml | Skips TestFlight upload for bot PRs; updates pinned actions. |
| .github/workflows/sync-jni-branch.yml | Updates pinned checkout / setup-java SHAs. |
| .github/workflows/supabase.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/sqflite.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/size-analysis.yml | Updates pinned checkout / setup-java SHAs. |
| .github/workflows/release.yml | Updates pinned checkout and getsentry/craft SHAs. |
| .github/workflows/package-analysis.yml | Updates pinned checkout SHA. |
| .github/workflows/min_version_test.yml | Updates pinned checkout / setup-java / setup-ruby SHAs. |
| .github/workflows/metrics.yml | Updates pinned checkout / setup-java SHAs. |
| .github/workflows/logging.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/link.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/kotlin-version-compatibility.yml | Updates Kotlin matrix defaults + pinned checkout / setup-java SHAs. |
| .github/workflows/isar.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/hive.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/grpc.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/format-and-fix.yml | Updates pinned checkout and setup-dart SHAs. |
| .github/workflows/flutter.yml | Updates pinned actions/checkout SHA; removes beta Android toolchain step. |
| .github/workflows/flutter-symbols.yml | Updates pinned checkout and setup-dart SHAs. |
| .github/workflows/flutter_test.yml | Updates pinned checkout / setup-java SHAs; removes beta toolchain step. |
| .github/workflows/firebase_remote_config.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/file.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/e2e_dart.yml | Updates pinned setup-dart and checkout SHAs. |
| .github/workflows/drift.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/dio.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/diagrams.yml | Updates pinned setup-dart and checkout SHAs. |
| .github/workflows/dart.yml | Updates pinned actions/checkout SHA. |
| .github/workflows/changes-in-high-risk-code.yml | Updates pinned checkout and paths-filter SHAs. |
| .github/workflows/changelog-preview.yml | Updates referenced getsentry/craft workflow SHA. |
| .github/workflows/analyze-package.yml | Updates pinned checkout and setup-dart SHAs. |
| .github/scripts/use-beta-android-toolchain.sh | Removes now-unneeded beta toolchain override script. |
| .github/actions/size-analysis-setup/action.yml | Replaces curl-pipe installer with getsentry/action-setup-cli. |
| .githooks/pre-commit | Improves SDK resolution (fvm/worktree) and makes formatting check non-staging. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
CI dart analyze uses latest dart_style, which rewrote a few test files brought in by the 9.27.0 merge. Co-Authored-By: Cursor <[email protected]>
CI flutter analyze uses Flutter-bundled dart_style, which rewrote a few files brought in by the 9.27.0 merge. Co-Authored-By: Cursor <[email protected]>
Tighten dio and gql_link lower bounds to APIs the integrations already use, and add a grpc example so pana can score the package. Co-Authored-By: Cursor <[email protected]>
* deps(flutter): Bump sentry-cocoa to 9.17.1 in v10 (#3764) * feat(flutter)!: Bump sentry-cocoa to 9.17.1 Bump the embedded sentry-cocoa SDK from 8.58.3 to the latest 9.x. Raise the minimum deployment targets to iOS 15 and macOS 12, as required by sentry-cocoa 9. Migrate native code to the cocoa 9 API surface: - Drop the removed `enableSessionReplayInUnreliableEnvironment` option - Drop the removed `PrivateSentrySDKOnly.options.integrations` accessor - Replace `PrivateSentrySDKOnly.getDebugImages()` with `debugImageProvider.getDebugImagesFromCache()` - Format image addresses in Swift instead of the removed `sentry_formatHexAddressUInt64` - Drop the obsolete `Sentry._Hybrid` submodule imports - Build replay events via `SentrySRDefaultBreadcrumbConverter`, `SentryRRWebBreadcrumbEvent`, and `SentryRRWebSpanEvent` Regenerate the FFI binding: PrivateSentrySDKOnly.h moved into Headers/ and SentryId is now generated as a full interface, so the SentryId1/sed workaround is removed. Add scripts/build-macos-example.sh (and a melos build:macos-example alias) to build the macOS example, working around Flutter deriving the SwiftPM package identity from the plugin directory basename. BREAKING CHANGE: minimum supported versions are now iOS 15 and macOS 12. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(flutter): Depend on Sentry pod and fix cocoa 9 tests sentry-cocoa 9 removed the Sentry/HybridSDK CocoaPods subspec; the hybrid public headers now ship with the default Core subspec. Depend on `Sentry` instead so pod resolution and pod-lint succeed, and update update-cocoa.sh to match. Bump the min_version_test iOS deployment target to 15 (cocoa 9's floor). Update the loadContexts integration test: cocoa 9 exposes no accessor for installed integration names, so native integrations are no longer reported. Assert their absence and leave a TODO to restore once cocoa adds the accessor. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(flutter): Silence swiftlint todo rule on cocoa integrations note The swift-lint CI job runs with --strict, which promotes the default todo rule to an error. Keep the tracked TODO about restoring native integration reporting and suppress just that line with swiftlint:disable:next todo. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * build(flutter): Harden macos build script and bump microbenchmarks targets Add preflight checks to build-macos-example.sh so it refuses to run when packages/sentry_flutter already exists (the rename would otherwise nest the directory and the restore trap would corrupt the tree) or when packages/flutter is missing. Install the EXIT trap only after the rename succeeds. Bump the microbenchmarks iOS and macOS deployment targets to 15.0 / 12.0 to match the cocoa 9 minimums now required by the sentry_flutter podspec, keeping them consistent with the example app. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ci(flutter): Update cocoa dep pattern to 9.x for v10 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * deps(flutter): Bump jni to 1.0.0 and jnigen to 0.16.0 in v10 (#3765) * feat(flutter)!: Bump sentry-cocoa to 9.17.1 Bump the embedded sentry-cocoa SDK from 8.58.3 to the latest 9.x. Raise the minimum deployment targets to iOS 15 and macOS 12, as required by sentry-cocoa 9. Migrate native code to the cocoa 9 API surface: - Drop the removed `enableSessionReplayInUnreliableEnvironment` option - Drop the removed `PrivateSentrySDKOnly.options.integrations` accessor - Replace `PrivateSentrySDKOnly.getDebugImages()` with `debugImageProvider.getDebugImagesFromCache()` - Format image addresses in Swift instead of the removed `sentry_formatHexAddressUInt64` - Drop the obsolete `Sentry._Hybrid` submodule imports - Build replay events via `SentrySRDefaultBreadcrumbConverter`, `SentryRRWebBreadcrumbEvent`, and `SentryRRWebSpanEvent` Regenerate the FFI binding: PrivateSentrySDKOnly.h moved into Headers/ and SentryId is now generated as a full interface, so the SentryId1/sed workaround is removed. Add scripts/build-macos-example.sh (and a melos build:macos-example alias) to build the macOS example, working around Flutter deriving the SwiftPM package identity from the plugin directory basename. BREAKING CHANGE: minimum supported versions are now iOS 15 and macOS 12. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(flutter): Depend on Sentry pod and fix cocoa 9 tests sentry-cocoa 9 removed the Sentry/HybridSDK CocoaPods subspec; the hybrid public headers now ship with the default Core subspec. Depend on `Sentry` instead so pod resolution and pod-lint succeed, and update update-cocoa.sh to match. Bump the min_version_test iOS deployment target to 15 (cocoa 9's floor). Update the loadContexts integration test: cocoa 9 exposes no accessor for installed integration names, so native integrations are no longer reported. Assert their absence and leave a TODO to restore once cocoa adds the accessor. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(flutter): Silence swiftlint todo rule on cocoa integrations note The swift-lint CI job runs with --strict, which promotes the default todo rule to an error. Keep the tracked TODO about restoring native integration reporting and suppress just that line with swiftlint:disable:next todo. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * build(flutter): Harden macos build script and bump microbenchmarks targets Add preflight checks to build-macos-example.sh so it refuses to run when packages/sentry_flutter already exists (the rename would otherwise nest the directory and the restore trap would corrupt the tree) or when packages/flutter is missing. Install the EXIT trap only after the rename succeeds. Bump the microbenchmarks iOS and macOS deployment targets to 15.0 / 12.0 to match the cocoa 9 minimums now required by the sentry_flutter podspec, keeping them consistent with the example app. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * build(flutter)!: Bump jni to 1.0.0 and jnigen to 0.16.0 Move the Android JNI bindings to jni 1.0.0 / jnigen 0.16.0 (exact-pinned, since jni 1.0.0 adds a compile-time consistency check between the runtime and the committed generated binding). - Regenerate binding.dart via a new programmatic generator (tool/jnigen.dart) that replaces ffi-jni.yaml. A visitor excludes four unused setters whose @Nullable getter / non-null setter pair JNIgen 1.0.0 emits as invalid Dart. - Migrate the hand-written interop and integration tests to the 1.0.0 API: getX()/setX() to getters/setters, JList.array/JMap.hash to JArrayList/ JHashMap, JByteArray.from to allocate-then-fill, intValue/longValue/etc. to toDartInt/toDartDouble/toDartBool, and collection access via asDart(). - Update the regeneration scripts to call the new generator. BREAKING CHANGE: jni is now pinned to 1.0.0 (was 0.14.2). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(flutter): Address Copilot review on jni bump - safe-regenerate-jni.sh: the fallback path still called the removed ffi-jni.yaml; point it at tool/jnigen.dart like the normal path. - integration_test.dart: use toDartDouble(releaseOriginal: true) for the sample-rate assertion, consistent with the rest of the migrated test. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * build(flutter)!: Raise min Flutter to 3.35.6 for jni 1.0.0 jni 1.0.0 requires Flutter >=3.35.6 (Dart 3.9.2), so the min_version_test job failed version solving against the old 3.24.0 floor. Raise the minimum supported Flutter/Dart in the flutter package, the min_version_test app, the min-version CI workflow, and the agent docs to match. BREAKING CHANGE: minimum supported Flutter is now 3.35.6 (Dart 3.9.2). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * build(flutter): Drop manual changelog entry Per CONTRIBUTING.md, changelog entries are auto-generated by craft from the PR title; no manual CHANGELOG.md edits are needed. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ref(flutter): Extract shared JNI byte-array helpers The toJByteArray and jsonToJByteArray helpers were duplicated across sentry_native_java.dart and android_core_worker.dart. Move them into a single jni_byte_array.dart so both files share one implementation. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * fix(flutter): Repoint integration test to relocated helper jsonToJByteArray moved to jni_byte_array.dart during the helper consolidation, but the JNI integration test still imported it from sentry_native_java.dart, breaking the kernel snapshot build. Import it from the new location. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * style(flutter): Apply dart format from Flutter stable CI runs dart format with the current Flutter stable (3.44.x), whose dart_style reformats files committed under an older version. Reformat the package so 'dart format --set-exit-if-changed' passes. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * build(flutter): Update min_version_test Android for Flutter 3.35.6 The min version bump to Flutter 3.35.6 left the min_version_test Android project on the legacy imperative plugin setup, which newer Flutter no longer supports. Migrate to the declarative Gradle plugins block and raise the toolchain to Flutter 3.35.6's minimums: - settings.gradle: declarative pluginManagement + plugins block - build.gradle: drop the buildscript block (plugins resolved above) - app/build.gradle: apply plugins via the plugins block - Gradle wrapper 8.2 -> 8.4 (filePermissions API needs >= 8.3) - Kotlin 1.8.0 -> 1.8.10 (Flutter's minimum supported version) Verified with 'flutter build appbundle' on Flutter 3.35.6. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * style(flutter): Format binding.dart with Dart 3.12 dart_style CI's Flutter stable bundles Dart 3.12, whose dart_style joins the ') implements' clause of extension types onto one line. The earlier reformat used Dart 3.10 locally, which left this file one change short. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * style(flutter): Resolve analyzer lints under flutter_lints 6 The SDK/Flutter bump pulls flutter_lints 6.0.0 (analyzer 13), which enables new lints and fails the strict 'dart analyze' gate: - use_null_aware_elements: rewrite 'if (x != null) k: x' map entries to the null-aware 'k: ?x' form (dart fix) - unnecessary_underscores: collapse '__'/'___' params to '_' (dart fix) - invalid_use_of_internal_member: the reformat moved line-level '// ignore:' comments off their target lines; replace with file-level '// ignore_for_file:' in sentry_script_loader.dart and the feature flag integration test Verified: dart analyze clean, dart format gate passes, and min_version_test still builds on Flutter 3.35.6 (Dart 3.9.2). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * feat(flutter): Support SwiftPM on Flutter 3.44+ (#3784) * feat(flutter): Support SwiftPM on Flutter 3.44+ Flutter 3.44 exposes its framework as an explicit FlutterFramework SwiftPM package. Plugins must declare a dependency on it; otherwise the build emits a deprecation warning that becomes a hard error in a future Flutter release. Add FlutterFramework to both the Swift and ObjC SwiftPM targets (both import Flutter/FlutterMacOS). Raise the minimum Flutter to 3.44.0 (Dart 3.12.0) since FlutterFramework is unavailable on older versions, and update min_version_test to match. Verified by building the iOS and macOS example apps with SwiftPM enabled (warning gone) and with CocoaPods. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ci: Run pana directly to support Flutter 3.44+ The axel-op/dart-package-analyzer action is unmaintained and its bundled Flutter SDK is frozen at 3.38.6, so it cannot resolve packages that require a newer Flutter. After raising sentry_flutter to Flutter 3.44, package-analysis failed with a version-solving error. Replace the action with an explicit SDK setup (setup-dart or flutter-action) plus a direct `pana --json` run, reading the score from .scores.grantedPoints/.maxPoints. Verified locally that packages/dart (160/160) and packages/flutter (150/160) clear the 140 threshold. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ci: Modernize min_version_test Android build for 3.44 Flutter 3.44's Gradle plugin requires Gradle >=8.7.0, so the min version test app failed to build with its pinned Gradle 8.4. Bump Gradle to 8.9, AGP to 8.6.0, and Kotlin to 2.0.21 to match the example app, and keep the Flutter migrator's android.newDsl/builtInKotlin opt-outs. Verified by building the appbundle locally on Flutter 3.44. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * style(flutter): Satisfy prefer_initializing_formals lint Flutter stable advanced to 3.44.3, whose analyzer enforces prefer_initializing_formals and fails the 'dart analyze' gate. Convert the flagged constructors to initializing formals, and exclude the generated lib/src/native/java/binding.dart from analysis (consistent with the already-excluded cocoa/binding.dart). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ci(flutter): Fix min_version_test Android OOM on Flutter 3.44 After bumping min_version_test to Flutter 3.44.0, the release build OOMs (Java heap space) during the Jetifier transform of the larger Flutter embedding jar. Disable Jetifier (not needed for AndroidX) and raise the Gradle heap to 4G. Verified with 'flutter build appbundle' on Flutter 3.44.0. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * style(flutter): Format native files with Dart 3.12 These files came from main during the v10-branch sync and carried main's formatting; CI formats with stable Flutter's bundled Dart (3.12), which reformats them, so dart format --set-exit-if-changed failed. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * style(flutter): Remove doubled word in native log message Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * release: 10.0.0-alpha.1 * ref(feedback)!: Remove deprecated SentryFeedbackWidget (#3844) SentryFeedbackWidget was a deprecated typedef alias for SentryFeedbackForm; the rename is complete, so remove the alias, its export, and the alias-specific test group. BREAKING CHANGE: SentryFeedbackWidget is removed; use SentryFeedbackForm. Fixes GH-3825 Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * ref(logs): Remove deprecated SentryLogAttribute (#3843) SentryLogAttribute was already @Deprecated and merely duplicated SentryAttribute's scalar factories while lacking its array variants. Nothing in the SDK referenced it anymore, so remove it and leave SentryAttribute as the single attribute type. BREAKING CHANGE: SentryLogAttribute is removed; use SentryAttribute. Fixes GH-3826 Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * feat(logs): Enable logs by default (#3846) Flip SentryOptions.enableLogs default from false to true so logs work out of the box, matching enableMetrics. Logs are only sent when the user emits them - by calling Sentry.logger.* or by explicitly adding a log-emitting integration (LoggingIntegration is the only one and is never auto-registered), so the flip alone sends nothing. Document the opt-in contract on enableLogs and LoggingIntegration, pin the new default with a test, and opt metrics-focused lifecycle tests out of logs explicitly. Fixes GH-3682 Fixes GH-3833 Co-authored-by: Claude Fable 5 <[email protected]> * ref!: Remove deprecated performance collectors (#3850) Remove the deprecated PerformanceCollector / PerformanceContinuousCollector API and the options.performanceCollectors / addPerformanceCollector() surface. These predate the SdkLifecycleHooks model, which now covers the same span start/finish hooks via OnSpanStart / OnSpanFinish. The SDK's own frame tracking already runs entirely on the lifecycle registry, so the collector loops in the tracer and span-finish paths were redundant with the adjacent lifecycle dispatch. Both static and stream trace lifecycles remain fully served by the lifecycle hooks. BREAKING CHANGE: PerformanceCollector, PerformanceContinuousCollector, SentryOptions.performanceCollectors and addPerformanceCollector() are removed. The lifecycle-hook replacement is internal; there is no public replacement API. Fixes #3831 Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * ref(logs): Make logger methods return void (#3852) * ref(dart)!: Make logger methods return void SentryLogger and SentryLoggerFormatter methods (trace/debug/info/warn/ error/fatal) were declared FutureOr<void> but are always fire-and-forget in practice — the internal capture pipeline already handles errors internally, so nothing awaits the result. Narrow them to void. DefaultSentryLogger now fires its capture callback via unawaited(), mirroring DefaultSentryMetrics. The internal capture chain (Hub.captureLog, SentryClient.captureLog, HubAdapter.captureLog, LogCapturePipeline.captureLog, and the Noop variants) narrows from FutureOr<void> to Future<void> for consistency with the equivalent metrics pipeline; these are already async, so this is a type-precision fix with no behavior change. sentry_logging's LoggingIntegration no longer awaits the now-void logger calls. BREAKING CHANGE: SentryLogger and SentryLoggerFormatter methods now return void instead of FutureOr<void>. Fixes GH-3851 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(firebase_remote_config): Narrow mocked Hub.captureLog signature The generated MockHub still declared captureLog as FutureOr<void>, which no longer satisfies Hub.captureLog's Future<void> signature and broke compilation on all platforms. Refs GH-3851 Co-Authored-By: Claude Sonnet 5 <[email protected]> * fix(firebase_remote_config): Add mock return values for captureLog The hand-edited mock cast noSuchMethod's result to a non-nullable Future<void> without providing returnValue or returnValueForMissingStub, so stubbing or calling captureLog on MockHub would throw a TypeError at runtime. Add both defaults, matching mockito's generated output for Future<void> methods and the equivalent mocks in packages/flutter. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Sonnet 5 <[email protected]> * chore(grpc): Bump version to 10.0.0-alpha.1 sentry_grpc was skipped by the 10.0.0-alpha.1 release bump and drifted to 9.23.0 via the main merge. Align the package version, sentry dependency pin, and reported sdkVersion with the other v10 packages. Co-Authored-By: Claude Fable 5 <[email protected]> * feat(logs): Add Hint to beforeSend for logs, metrics, and spans (#3847) * feat(logs): Add Hint to beforeSend for logs, metrics, spans beforeSendLog, beforeSendMetric, and beforeSendSpan now receive a Hint as their second argument, matching beforeSend and beforeSendTransaction. Each capture pipeline creates one Hint and threads that same instance through the OnProcessLog/Metric/Span lifecycle event and into the callback, so SDK-side lifecycle callbacks can enrich the hint before beforeSend reads it. Public capture APIs are unchanged. Also migrate the metric pipeline's callback-error log from the deprecated options.log to internalLogger. BREAKING CHANGE: user-defined beforeSendLog/beforeSendMetric/ beforeSendSpan callbacks must add the Hint parameter. Fixes GH-3836 Co-Authored-By: Claude Fable 5 <[email protected]> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> --------- Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> * ref(file): Remove file.async attributes from instrumentation (#3841) * ref(file)!: Remove file.async attributes from instrumentation The file.async span attribute and breadcrumb data was a Sentry-invented signal with no product feature consuming it — a dead signal on every file-I/O span and breadcrumb. Remove it from both the async and sync paths. The sync attribute is left untouched. BREAKING CHANGE: Consumers relying on file.async for filtering or sampling lose the signal. Fixes GH-3830 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test(file): Fix typo in breadcrumb assert helper name Rename _asserBreadcrumb to _assertBreadcrumb for consistency with the other assert helpers in the file. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * ref(dart): Make feature flags hub/scope-based (#3848) * ref(dart)!: Make feature flags hub/scope-based Move the feature-flag buffer logic off FeatureFlagsIntegration and onto Scope/Hub, mirroring the addBreadcrumb path. Sentry.addFeatureFlag now delegates through the hub instead of reaching into options.integrations. FeatureFlagsIntegration is deleted, so events no longer report "FeatureFlagsIntegration" in sdk.integrations. Usage is now tracked via the "featureFlags" entry in sdk.features, recorded on actual use. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ref(dart): Read feature flags context field directly Avoid copying the whole contexts map via the public getter on each addFeatureFlag call; read the internal _contexts field instead. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * test(flutter): Pass Hint to OnProcessSpan in thread info tests v10-branch #3847 added a Hint parameter to OnProcessSpan while the thread info tests from #3821 landed in parallel still using the single-argument constructor, breaking compilation on the base branch. Pass an empty Hint like the other call sites. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * ref: Make clone() internal and remove deprecated protocol clones (#3845) * ref!: Make clone() internal; drop protocol clones clone() on Hub, Scope, NoOpHub, HubAdapter and Sentry is intended for SDK-internal use only, so mark it @internal. The protocol clone() methods (Contexts and its children) were already @Deprecated and formed a dead subtree with no remaining callers, so remove them along with the alias-only clone context test. BREAKING CHANGE: The deprecated clone() on protocol classes is removed, and clone() on Hub/Scope is now @internal. Fixes GH-3824 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ref: Rename feature flag copy() to clone() Align internal naming with Hub.clone() and Scope.clone(). The copy name existed only to avoid clashing with the deprecated public clone() API, which this branch removes. Co-Authored-By: Claude Fable 5 <[email protected]> * test(flutter): Fix OnProcessSpan calls missing Hint PR #3847 added a required hint parameter to OnProcessSpan but missed the five call sites in thread_info_integration_test.dart, which landed in parallel. This breaks compilation of the flutter test suite and the analyze gate on v10-branch, failing CI for every PR based on it. Co-Authored-By: Claude Fable 5 <[email protected]> * chore(metrics): Raise Android binary size budget The v10 feature work pushed the with-Sentry APK size diff to ~1409 KiB, past the 1350 KiB budget, failing the SDK metrics job on v10-branch and every PR based on it. Raise diffMax to 1450 KiB, following the same pattern as #3324 and #3567. Co-Authored-By: Claude Fable 5 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * ref(logs): Make traceId required on SentryLog (#3842) SentryLog.traceId was nullable and defaulted to SentryId.empty(), so a log could be constructed without a real trace association and was only patched later in the capture pipeline. Make traceId a required, non-nullable constructor parameter and drop the SentryId.empty() fallback. The pipeline no longer needs to populate traceId from the scope, so that compensating block is removed; the scope attribute merge is unchanged. BREAKING CHANGE: Constructing SentryLog without a traceId no longer compiles. Fixes GH-3835 Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * release: 10.0.0-alpha.2 * chore: Complete 10.0.0-alpha.2 changelog entries (#3861) * chore: Complete 10.0.0-alpha.2 changelog entries Add the PRs merged since alpha.1 that were missing from the 10.0.0-alpha.2 section, categorized to match the existing format. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * chore: Drop alpha.2 entries already in 9.23.0 #3784, #3765, and #3764 were released in 9.23.0 and were duplicated in the 10.0.0-alpha.2 section. Removing them empties the Dependencies section, so drop that too. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * Update CHANGELOG for version 10.0.0-alpha.1 Add new features, enhancements, and dependency updates for version 10.0.0-alpha.1. * feat(telemetry): Align span attributes with Sentry Conventions (#3805) * feat(telemetry)!: Align span attributes with Sentry Conventions Cross-check every attribute in the core constants against the Sentry Conventions source of truth and align the SDK with the stable names. - Remove deprecated, unused attribute constants whose stable replacement was already in use (app.app_*, os.build, device.connection_type) and drop the inaccurate "deprecated" comments on device.locale / device.timezone, which are not deprecated in the conventions. - Hard-rename db.system to db.system.name across all database integrations (drift, hive, isar, sqflite, supabase). - Remove the SentrySpanData key bag in favor of SemanticAttributesConstants for codified attributes and ProposedSemanticAttributes for keys that are not (yet) part of the conventions (db.schema, db.url, db.sdk, db.body). - Supabase now emits db.operation.name, db.query.text and db.collection.name instead of db.operation, db.query and db.table. - Move app.vitals.start.value to ProposedSemanticAttributes since it is not a codified convention. - Keep each integration's db.system.name value as a named constant in production, but assert the literal value in tests so the assertions are not tautological. Correct drift's value from db.sqlite to the standard sqlite. BREAKING CHANGE: database span attribute keys changed to match Sentry Conventions (db.system.name, db.operation.name, db.query.text, db.collection.name). Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ref(integrations): Use SemanticAttributesConstants for db keys Drop the per-integration dbSystemKey / dbNameKey constants in hive, isar and sqflite and reference SemanticAttributesConstants.dbSystemName / .dbName directly, since those keys are now defined canonically there. The integration-specific db.system value constant (dbSystem) stays local, and tests assert the literal attribute keys. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(integrations)!: Emit db.namespace instead of db.name Rename SemanticAttributesConstants.dbName to dbNamespace ('db.namespace') and emit it across all database integrations (drift, hive, isar, sqflite), aligning with the OTel/Sentry convention where db.namespace supersedes the legacy db.name. BREAKING CHANGE: database spans now carry db.namespace instead of db.name. db.name has no Relay backfill (deprecation _status is null), so this is a hard cutover for consumers querying that attribute. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * feat(telemetry)!: Align DB, HTTP and app start span attributes Continue aligning emitted span attributes with Sentry Conventions. Supabase DB spans now carry the SQL statement on the convention key db.query.text (with ? placeholders, so it is value-free and emitted regardless of sendDefaultPii) plus a low-cardinality db.query.summary, replacing the raw PostgREST filter list and the misuse of the operation name db.sql.query as a data key. generateSqlQuery() now builds the projection and WHERE clause for SELECT so the statement is complete. Isar now emits db.collection.name instead of the custom db.collection. HTTP spans now emit url.full instead of the bare url key and http.response.body.size instead of the deprecated http.response_content_length (Relay backfills the latter). The Flutter app start handler emits app.vitals.start.type instead of the custom app_start_type, matching the span-v2 handler. Production code now references SemanticAttributesConstants for these keys instead of string literals. BREAKING CHANGE: db.query.text now holds the SQL statement, db.collection (Isar), bare url and app_start_type are no longer emitted. db.collection.name, url.full and app.vitals.start.type have no Relay backfill. Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat: Add sentry.trace_lifecycle span attribute (#3811) Mark spans with how they were sent so the product can distinguish streamed from transaction-sent spans (per sentry-conventions#442). - stream mode: set "stream" on each streamed span in the capture pipeline (user/beforeSendSpan values still win). - static mode: set "static" on the transaction trace context and on each child span at creation time. Co-authored-by: Claude Opus 4.8 <[email protected]> * ref(telemetry): Rename db-system value constants to dbSystemName The emitted key is db.system.name, so rename the per-integration value constants (postgresql, sqlite, flutter_hive, isar) from the dbSystem prefix to dbSystemName to match. Pure rename; the emitted values are unchanged. Co-Authored-By: Claude Opus 4.8 <[email protected]> * ref(telemetry): Use constants for file.path and file.size attributes Add file.path and file.size to ProposedSemanticAttributes (they have no Sentry Conventions home yet) and reference them from the file and asset bundle integrations instead of string literals. No wire change. Co-Authored-By: Claude Opus 4.8 <[email protected]> * ref(supabase): Move db.query.text and summary work to a follow-up PR Revert the Supabase query-attribute changes from this PR so they can be reviewed separately: db.query.text now goes back to the raw PostgREST filter list, the generated SQL returns to the db.sql.query key, and the db.query.summary attribute and generateSqlQuery() SELECT completion are removed (along with the unused dbQuerySummary constant). The foundational key migration (db.operation.name, db.collection.name, db.system.name, db.schema/url/sdk/body) stays in this PR. Co-Authored-By: Claude Opus 4.8 <[email protected]> * fix(supabase): Keep raw query filters on db.query not db.query.text The db.query.text convention expects value-free parameterized SQL, but the raw PostgREST filter list (value-inlined and PII-gated) was being written there. Park the filter list on the legacy, non-convention db.query key instead; the proper db.query.text SQL payload lands in the follow-up PR. Co-Authored-By: Claude Opus 4.8 <[email protected]> * feat(supabase): Emit SQL in db.query.text and add db.query.summary (#3817) * feat(supabase)!: Emit SQL in db.query.text and add db.query.summary Introduce db.query.text holding the parameterized SQL statement (with ? placeholders, value-free, emitted regardless of sendDefaultPii) and migrate the raw PostgREST filter list off the legacy db.query key. generateSqlQuery() now builds the projection and WHERE clause for SELECT so the statement is complete, a low-cardinality db.query.summary is added, and the misuse of the db.sql.query operation name as a data key is removed. Stacked on the telemetry-alignment PR, which keeps the raw filters on the legacy db.query key. BREAKING CHANGE: the raw filter list under db.query is replaced by the SQL statement under db.query.text; the value under db.sql.query is gone. Co-Authored-By: Claude Opus 4.8 <[email protected]> * fix(supabase): Represent not() filter as NOT in db.query.text generateSqlQuery() rendered PostgREST .not(column, op, value) filters as `column = ?` because _getOperatorSql had no `not` case and fell through to `=`. Negated filters now render as `NOT (column <op> ?)`. This pre-existing flaw affected UPDATE/DELETE on v10 and became visible for SELECT once the WHERE clause was added. Co-Authored-By: Claude Opus 4.8 <[email protected]> * fix(supabase): Exclude pagination params from WHERE PostgREST sorting/pagination params (order, limit, offset) were translated as pseudo-filters and leaked into the SELECT WHERE clause of db.query.text, e.g. `.select().order('id')` produced `SELECT * FROM "t" WHERE order = ?`. Skip these reserved params in _buildWhereClause so they no longer appear as bogus column predicates. Co-Authored-By: Claude Opus 4.8 <[email protected]> * fix(supabase): Map is filter to IS and unify NOT rendering The is filter (e.g. .is_('deleted', null)) fell through _getOperatorSql to the default '=', rendering db.query.text as "deleted = ?" instead of "deleted IS ?". Add the missing case. The pre-existing filter(not, ...) path rendered "column != ?" while the new not(column, op, value) path renders "NOT (column = ?)", so the same NOT concept appeared two ways. Render both as "NOT (column = ?)". Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> * ref(supabase): Read select projection from the query param _buildSelectColumns reconstructed the projection by scanning the translated query list for a select(...) entry and stripping it with a magic substring(7, ...). Read request.url.queryParameters['select'] directly instead, dropping the round-trip, the magic offset, and the first-match-only loop. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> --------- Co-authored-by: Claude Opus 4.8 <[email protected]> --------- Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]> * feat(flutter): Make native request capture opt-in (#3885) * feat(flutter)!: Make native request capture opt-in Default native failed-request capture to false and remove its fallback to the Dart-side capture option. This keeps Cocoa HTTP errors opt-in. BREAKING CHANGE: captureNativeFailedRequests is now a non-nullable bool and defaults to false. Set it to true to keep native iOS/macOS failed-request capture enabled. Fixes GH-3834 Co-Authored-By: OpenAI Codex <[email protected]> * test(flutter): Clarify native capture independence Rename bridge tests around the native option's independent contract. Remove duplicate default coverage. Refs GH-3834 Co-Authored-By: OpenAI Codex <[email protected]> * test(dart): Follow local options test style Keep the new default assertion flat like the surrounding legacy tests instead of introducing a one-off group. Refs GH-3834 Co-Authored-By: OpenAI Codex <[email protected]> --------- Co-authored-by: OpenAI Codex <[email protected]> * style(flutter): Format delayed frames test Apply the Flutter SDK's bundled Dart formatter to keep the package aligned with CI formatting. Co-Authored-By: Codex <[email protected]> * ref(dart): Remove deprecated copyWith methods (#3877) * ref!: Remove deprecated copyWith methods Remove protocol copyWith APIs as part of the v10 cleanup. SentryRuntime.copyWith was intended to be deprecated as well. Callers should assign mutable fields or reconstruct immutable values. BREAKING CHANGE: Protocol copyWith methods are no longer available. Fixes GH-3823 Co-Authored-By: Codex <[email protected]> * ref!: Remove SentryEventLike mixin Remove the empty mixin left behind after deleting the deprecated copyWith methods. BREAKING CHANGE: SentryEventLike is no longer exported. Co-Authored-By: Codex <[email protected]> --------- Co-authored-by: Codex <[email protected]> * feat(profiling): Remove SDK profiling (#3891) * feat(profiling)!: Remove SDK profiling Remove transaction profiling configuration, lifecycle hooks, envelope payloads, native bridges, and generated Cocoa bindings. BREAKING CHANGE: SentryFlutterOptions.profilesSampleRate and SDK profiling are no longer available. Co-Authored-By: Codex <[email protected]> * test(flutter): Remove redundant profiling test The removed API test only re-proves Dart's NoSuchMethodError behavior. Keep the profiling removal focused on SDK-owned behavior. Co-Authored-By: Codex <[email protected]> --------- Co-authored-by: Codex <[email protected]> * feat(flutter): Remove CocoaPods support and update Sentry Cocoa to `9.21.0` (#3879) * feat(flutter)!: Remove CocoaPods support Update sentry-cocoa to 9.21.0 and adopt its structured hybrid SDK interfaces. Support Sentry Flutter through Swift Package Manager only. BREAKING CHANGE: Sentry Flutter no longer supports CocoaPods on iOS or macOS. Use Swift Package Manager. Co-Authored-By: Codex <[email protected]> * ref(flutter): Address Cocoa review feedback Clarify native address and nullability intent. Link the integration TODO and align documented SDK versions with CI. Co-Authored-By: Codex <[email protected]> * fix(flutter): Handle missing replay ID Treat a null replay capture result as an empty Sentry ID instead of raising a type cast error. Cover the native channel fallback with a regression test. Co-Authored-By: Codex <[email protected]> --------- Co-authored-by: Codex <[email protected]> * ref(flutter): Share Darwin plugin sources (#3922) Use Flutter's sharedDarwinSource layout instead of maintaining macOS symlinks to the iOS Swift package. Fixes #1445 Co-authored-by: GPT-5.6 Sol <[email protected]> Co-authored-by: Cursor <[email protected]> * deps(flutter): Increase `jni` range and set `jnigen` to `0.17.0` (#3931) * build(flutter): Relax jni pin, bump jnigen 0.17.0 Replace the exact `jni: 1.0.0` pin with `>=1.0.0 <1.1.0` and bump jnigen to 0.17.0, regenerating the Android bindings. An exact pin propagates resolution conflicts to every consumer that also depends on jni. A range avoids that while still gating minors: jnigen stamps `JniVersionCheck(1, 0)` into the bindings, which only asserts major equality and a minor floor, so it cannot detect a break introduced within 1.x. Capping below 1.1.0 turns each minor into a Dependabot PR that the Android emulator integration tests validate before it ships, while patches flow through automatically. jnigen 0.17.0 defaults `generateStubs` to true, so referenced but excluded Java classes now get minimal stubs instead of falling back to JObject. That grows binding.dart by ~5k lines and takes the generated extension types from 87 to 278; nothing is removed. The version check stamp is unchanged at (1, 0). Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * style(flutter): Reformat bindings with Dart 3.12 `packages/flutter` declares `sdk: >=3.12.0`, and CI's analyze gate formats it with the Flutter-bundled dart, so Dart 3.12's dart_style is authoritative here. The previous commit was formatted with a system Dart 3.10, which disagrees on this file. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * build(flutter): Fix microbenchmarks jni resolution microbenchmarks declared `jni: ^0.14.0` while depending on sentry_flutter by path, which has required jni 1.x since the 1.0.0 migration. The two ranges do not overlap, so `pub get` failed outright -- and CI resolves this package as part of the flutter analyze job. Use `jni: any` rather than restating the range. The package is `publish_to: none`, so the effective constraint comes from sentry_flutter and cannot drift out of sync again. The dependency stays declared because jni_bench.dart imports package:jni directly. Also unbreak two things that had rotted alongside it: `sentryScreenshotWidgetGlobalKey` is now hidden from the public barrel file, so import it from source like the neighbouring widget_filter import, and reformat envelope_builder_bench.dart. jni_bench.dart needed no changes for jni 1.x. Its local copy of `_asUint8ListUnsafe` is kept rather than switched to the now-public `asUint8List`, which adds a NewGlobalRef and a finalizer inside the timed region and would change what the benchmark measures. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * style(flutter): Format microbenchmark files Co-Authored-By: Claude <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * refactor: Remove options.log in favor of internalLogger (#3932) * refactor: Remove options.log in favor of internalLogger Replace the SdkLogCallback/options.log diagnostic path with SentryInternalLogger across dart and flutter packages. Lazy log callbacks are used where message construction may be expensive. Co-Authored-By: Claude <[email protected]> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <[email protected]> * fix(flutter): Use lazy callbacks for expensive log messages Defer widget/exception toString until logging is enabled. Co-Authored-By: Claude <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Copilot Autofix powered by AI <[email protected]> Co-authored-by: Cursor <[email protected]> * chore: Align Dart and Flutter SDK constraints Every package, example and script now declares the same constraints that packages/flutter already required: Dart >=3.12.0 <4.0.0 and Flutter >=3.44.0. Previously only sentry_flutter had been bumped, leaving the rest of the monorepo advertising support for Dart 3.5 / Flutter 3.24 that v10 no longer targets. Also moves the pinned min-version job in dart.yml off Dart 3.5 and updates the prerequisites in CONTRIBUTING.md to match. The grpc4 example gains the experimental_member_use ignore that grpc5 already had, matching its sibling. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * ref: Apply new linter rules and graduate experimental APIs (#3940) * ref(api)!: Graduate experimental APIs Stabilize mature Flutter and integration APIs for v10. BindingWrapper and bindingUtils are now internal. Refs #3827 BREAKING CHANGE: BindingWrapper and bindingUtils are internal. Co-Authored-By: Claude <[email protected]> Co-authored-by: Cursor <[email protected]> * style: Format affected packages Use the CI Dart 3.12.2 formatter for affected packages. Co-Authored-By: Claude <[email protected]> Co-authored-by: Cursor <[email protected]> * style(flutter): Use FVM formatting Co-authored-by: Cursor <[email protected]> * style: Resolve new analyzer hints Co-authored-by: Cursor <[email protected]> * Formatting * Formatting * Formatting * style: Resolve CI analyzer hints Co-Authored-By: GPT-5.6 Luna <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Claude <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: GPT-5.6 Luna <[email protected]> * Changelog for next release * release: 10.0.0-alpha.3 * fix(http): Align HTTP client error type and value (#3934) * fix(dio): Identify DioException when obfuscated Under --obfuscate, DioException.runtimeType resolves to a minified name such as Qx, which becomes the issue title. Register a DioExceptionTypeIdentifier so the type stays readable without requiring the obfuscation map upload. packages/dart and packages/flutter already ship an identifier; dio was the only integration without one. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Shorten verbose DioException values A bad response renders as four lines of boilerplate: the meaning of the status code, a link to MDN and generic remediation advice. Replace it with the status code and route, which are what identify the failure. The request URL and status code are already on the event, and the untouched DioException stays on SentryException.throwable for beforeSend. Gated to the cases that carry no information of their own - badResponse and a null message - so timeouts keep the duration that elapsed and connection errors keep the host that failed. Skipped entirely when the user set DioException.stringBuilder or the global readableStringBuilder. Fixes GH-2914 Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Match failed request targets on full URL failedRequestTargets was matched against requestOptions.path, which is relative to baseUrl, so a host-based target like ['myapi.com'] never matched and the request was silently not captured. Match on the resolved URL instead, as FailedRequestClient does. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dart): Align HTTP client error type and value SentryHttpClientError appeared in no ExceptionTypeIdentifier, so the issue title obfuscated in release builds just like dio's did. Its toString() also prefixed the message with 'Exception: ', which no other SDK emits. The value now reads exactly as sentry-javascript's does: 'HTTP Client Error with status code: 404'. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(supabase): Align client error type and value SentrySupabaseClientError carried the same two problems as SentryHttpClientError: no ExceptionTypeIdentifier, so the issue title obfuscated, and an 'Exception: ' prefix on the value that no other SDK emits. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Use spec wording for error value The previous format repeated the exception type, which Sentry already renders as the issue title prefix, and embedded the request path, making the value vary per path parameter. Use the same string the HTTP client spec, sentry-javascript and FailedRequestClient produce, so a Dio 502 and a package:http 502 read identically. The route still travels on the request interface. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix: Filter sensitive headers from the response context SentryRequest sanitizes its headers, SentryResponse never did, so a response's Set-Cookie, Authorization or X-API-Key was sent verbatim whenever sendDefaultPii was on. Route both HTTP client paths through HttpSanitizer. SentryResponse derives its cookies field from the headers map, so the cookie is now read before sanitizing to keep that field populated, which matches how sentry-java's OkHttp interceptor treats it. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Capture connection-level failures The interceptor required a status-code match, and a DioException without a response has none, so timeouts, DNS errors and TLS failures produced no event at all. FailedRequestClient captures the equivalent failures on the package:http path. A missing status code now means there is nothing to filter on rather than an automatic reject. Cancellations stay excluded, being a deliberate user action, and failedRequestTargets is still honoured. Co-Authored-By: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Normalize connection failure messages DioEventProcessor rewrote the exception value only for bad responses, leaving timeouts and connection errors with Dio's own text. Those messages restate the timeout the developer configured and append generic remediation advice, and the embedded duration gave every timeout setting its own issue title. sentry-javascript never surfaces the underlying error's message either: httpClientIntegration uses the error only to recover a stack trace and always sets the value to its synthetic string. A timeout now reads "HTTP Client Error: connectionTimeout". A user-supplied stringBuilder still wins. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(http): Skip DSN requests, mark errors handled Two gaps against the HTTP client spec and sentry-javascript, closed across the package:http, dio and supabase integrations. Requests to the DSN were captured like any other, so a failing transport could try to report the failure over the connection that just failed. sentry-javascript guards this with isSentryRequestUrl inside _shouldCaptureResponse; the helper added here matches the DSN host the same way. The mechanism also left `handled` unset. It is now true: the SDK caught the failure and reported it rather than letting it reach the app. sentry-javascript sets false, which is deliberately not copied. SentryEnvelope.fromEvent turns handled == false into containsUnhandledException, which tells the native SDKs to end the session as crashed, and captureFailedRequests defaults to true here while httpClientIntegration is opt-in there. Copying that value would report a crashed session for every captured 5xx. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * chore(example): Add Dio failure demo buttons Three buttons covering the paths this branch touches: a 404 bad response, a connection timeout and a DNS failure. The latter two were dropped entirely before the interceptor learned to capture failures that carry no status code. Each swallows the DioException so the interceptor's event is the only one sent, rather than a second one from an implicit capture. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Word connection failures in prose A failure with no status code took its value straight from the enum name, so issue titles read "HTTP Client Error: connectionTimeout" -- a leaked identifier. They now read "connection timeout", "connection error", "bad certificate" and so on. Only the types whose enum name reads badly are mapped; a type Dio adds in a future minor release falls back to the name rather than breaking the build, which a switch would. The detail behind a connection error is not lost by keeping the title generic: DioErrorExtractor already chains DioException.error as a cause, so a DNS failure still carries its "SocketException: Failed host lookup" on the event. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(http): Compare the DSN host exactly The DSN skip tested whether the URL contained the DSN host, so a self-hosted DSN on sentry.example.com also suppressed capture for not-sentry.example.com. Failures on such a host went unreported with nothing to indicate why. Parse the URL and compare hosts instead. sentry-javascript's isSentryRequestUrl has the same substring flaw; the cost of being stricter is a Uri.tryParse per captured failure, and a relative URL cannot address the DSN so it yields an empty host and is kept. Reported by Bugbot on #3934. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dio): Keep the response body off the event Putting the response on contexts.response also started shipping the response body, which had previously been built but only ever reached the beforeSend hint, and hints are never serialized. With sendDefaultPii on, every failed request would carry up to 150 KB of response body -- more than the option asks for, and more than FailedRequestClient or the other SDKs send. The event now gets status code, headers, cookies and body size. The body stays on the hint, so beforeSend can still read it. Reported by Bugbot on #3934. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * fix(dart): Drop a null status code from the mechanism A request that threw reported mechanism.description as "HTTP Client Error with status code: null". The reason string was built before knowing whether it would be used: a thrown exception is kept as-is, so only the synthesized SentryHttpClientError ever needs the description. The exception value was never affected -- ??= short-circuits, so the thrown ClientException and its own message stay in the title. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * chore: Trim redundant comments Drop comments that restate the code, duplicate the doc on `isSentryRequestUrl`, repeat the same `handled: true` rationale in three packages, or justify the change against sentry-javascript. Co-Authored-By: Claude <[email protected]> * docs(dio): Cite Dio for the failure descriptions Review feedback. Link the private toPrettyDescription() the map mirrors, and note that an unlisted type falls back to its enum name so a Dio release cannot break the build. Adopt Dio's own "request cancelled" over "cancelled", and drop the claim that a cancellation is a user action -- it comes from a CancelToken, which app code or a wrapping library may hold. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * style: Reformat for the new dart_style v10-branch graduated to the newer formatting in #3940. The files this branch touches were written against the previous style, so the merge left them failing the format gate. Formatting only; no behavior change. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> * style(supabase): Reformat for the new dart_style Same as the previous commit -- a test this branch touches predates the formatting v10-branch adopted in #3940. Co-Authored-By: Claude Opus 5 <[email protected]> Co-authored-by: Cursor <[email protected]> --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> * build(flutter): Migrate to built-in Kotlin (#3961) Stop applying the Kotlin Gradle Plugin from the Android plugin project. Flutter 3.44+ applies KGP to library subprojects that don't declare it, and sentry_flutter already requires Flutter 3.44, so the plugin no longer needs its own KGP classpath. Replace kotlinOptions with the kotlin.compilerOptions DSL, which requires KGP 2.0.0 -- the minimum enforced by Flutter 3.44. Drop the explicit kotlin-stdlib-jdk8 dependency since KGP adds the stdlib automatically. Also bump the microbenchmarks KGP pin, which sat below the 2.0.0 floor. Co-authored-by: Cursor <[email protected]> Co-authored-by: Cursor <[email protected]> * chore: Merge tag '9.27.0' into v10-branch (#3968) * feat(replay): Add request details to Session Replay on Android (#3875) * feat(replay): Add HTTP request/response capture Adds opt-in capture of HTTP request/response headers and bodies for Session Replay network breadcrumbs, gated by enableReplayNetworkDetailsCapturing plus networkDetailAllowUrls/ networkDetailDenyUrls, scoped to Dart-only requests. NetworkDetailsCapture (Dart) attaches the captured data to the http breadcrumb, which the Android/iOS replay breadcrumb converters forward into the RRWebSpanEvent unchanged. Also syncs the network detail options into the native SentryReplayOptions at init so the SDK reports networkDetailHasUrls: true in the replay's options event - the Sentry frontend gates rendering of captured request/response detail on that flag, so without this sync the data would never show up in the dashboard despite being captured correctly. Co-Authored-By: Claude <[email protected]> * fix(replay): Scope HTTP detail capture to Android only iOS session replay doesn't yet forward captured request/response detail, so drop the unused iOS converter change and note the Android-only support in the option docs. Co-Authored-By: Claude <[email protected]> * fix(replay): Always forward fully-read response body If decoding the captured response body threw, captureResponse returned the original response whose stream was already drained by toBytes(), silently dropping the body for the caller. Forward the copied bytes regardless of whether the capture decode/truncate step succeeds. Co-Authored-By: Claude <[email protected]> * fix(replay): Gate network body capture behind sendDefaultPii Request/response bodies frequently contain PII, so only collect them when sendDefaultPii is enabled, matching the same gate used by FailedRequestClient. Also register a SentryFeatures constant and track it via options.sdk.addFeature so usage of this option shows up in SDK analytics, per the code guidelines. Co-Authored-By: Claude <[email protected]> * fix(replay): Gate custom headers behind sendDefaultPii too Custom header names configured via networkRequestHeaders/ networkResponseHeaders (e.g. Authorization, Cookie) were captured regardless of sendDefaultPii, only the default content-type-like headers should be unconditional. Also mirror the same gate in the Android native sync so setNetworkCaptureBodies and the custom header lists can't bypass the Dart-side privacy check. Co-Authored-By: Claude <[email protected]> * refactor(replay): Order NetworkDetailsCapture fields before ctor Reorders members to fields → constructor → public API → private helpers, per review feedback. Co-Authored-By: Claude <[email protected]> * refactor(replay)!: Remove enableReplayNetworkDetailsCapturing Only Cocoa needs a separate enable flag; gate purely on networkDetailAllowUrls being non-empty, matching other SDKs. Co-Authored-By: Claude <[email protected]> * fix(replay): Truncate captured bodies via bytes, not strings Avoids fully utf8-encoding the whole body just to check its size: _truncateBytes slices the Uint8List first, then decodes once. Also reads the request body via bodyBytes instead of the decoded body string. Co-Authored-By: Claude <[email protected]> * fix(replay): Skip oversized response bodies before reading Checks response.contentLength against maxBodySize upfront, avoiding buffering a body we already know will be discarded past the size we'd truncate it to anyway. Co-Authored-By: Claude <[email protected]> * fix(replay): Bound response body buffering to maxBodySize Reading via toBytes() buffered the entire response before truncating, so a large or unbounded chunked body (no Content-Length) was fully materialized in memory even though only maxBodySize is ever captured. Add bufferStreamPrefix, which reads only up to the cap and replays the rest of the stream lazily to the original caller. Co-Authored-By: Claude <[email protected]> * fix(replay): Bound single-chunk overshoot and oversized request bodies bufferStreamPrefix appended each chunk in full before checking the cap, so one chunk larger than maxBytes still buffered past it. Slice the overflowing chunk at the boundary and replay the remainder instead. Also align request body capture with the response path: skip attaching the body entirely when it's already known to exceed maxBodySize, rather than attaching a truncated fragment. Co-Authored-By: Claude <[email protected]> * fix(replay): Cancel source stream when replay forwarding stops early bufferStreamPrefix's replay() generator never cancelled the source StreamIterator if the forwarded stream was dropped or only partially consumed (e.g. an early-aborted response body), leaking the underlying subscription. Wrap the generator body in try/finally so the iterator is always cancelled on exit. Co-Authored-By: Claude <[email protected]> * fix(replay): Capture request headers after dispatch Request headers were snapshotted before `_client.send()`, so mutations made by clients further down the chain (e.g. TracingClient adding sentry-trace/baggage headers) were missed. Move the capture into the finally block so it reflects headers as actually sent. Co-Authored-By: Claude <[email protected]> * revert(replay): Drop stream-buffering optimization for response bodies Buenaflor asked to defer this to keep review scope focused on the replay-only breadcrumb-leak issue (getsentry/sentry-dart#3900) instead. Reverts 27b7c5b5, cb9bba37 (stream_utils.dart portion), and 7f5bcc52; keeps the request-body length-gate fix from cb9bba37, which is independent of the streaming optimization. This reverts the bufferStreamPrefix helper and restores response.stream.toBytes() in NetworkDetailsCapture.captureResponse. Co-Authored-By: Claude <[email protected]> * refactor(replay): Move HTTP capture options under options.replay Groups networkDetailAllowUrls/DenyUrls, networkCaptureBodies, and networkRequestHeaders/ResponseHeaders under a new SentryReplayOptions in core, with SentryFlutterOptions.replay extending it, instead of sitting flat on SentryOptions. Co-Authored-By: Claude <[email protected]> * refactor(replay): Move HTTP capture impl under sentry_flutter Network capture for replay is a Flutter-only concern; sentry (dart) now only exposes an internal NetworkDetailsCapture interface plus a nullable hook on SentryOptions, mirroring the Transport seam. Co-Authored-By: Claude <[email protected]> * fix(replay): Set capture feature flag lazily, not in ctor FlutterNetworkDetailsCapture is built in _initDefaultValues, before the user's optionsConfiguration runs, so networkDetailAllowUrls was always empty at construction and the feature flag never got set. Co-Authored-By: Claude <[email protected]> * fix(replay): Rethrow on response body capture failure Returning the original response after a failed stream read left callers reading an already-consumed stream, masking the real error behind a confusing "already listened to" failure. Co-Authored-By: Claude <[email protected]> * fix(replay): Stop breadcrumb timer before capturing body Stopping the stopwatch in `finally` meant response body capture (which can take arbitrarily long) was counted as request duration for allow-listed URLs, while uncaptured requests only measured time-to-headers. Stop it right after headers arrive instead. Co-Authored-By: Claude <[email protected]> * test(replay): Pin expected body length as a literal Asserting against FlutterNetworkDetailsCapture.maxBodySize makes the test tautological: it can't fail if that constant itself were wrong, since it's the same value the production truncation logic uses. Co-Authored-By: Claude <[email protected]> * fix(replay): Don't mark a successful request as an error A failure in captureResponse (e.g. reading the response stream for replay) was caught by the same handler as a failed _client.send, which set requestHadException and forced the http breadcrumb to error level even though the request itself succeeded. Only a transport-level failure should do that; a capture failure after a real response now leaves the breadcrumb level based on status code. Co-Authored-By: Claude <[email protected]> * fix(replay): Anchor breadcrumb timestamp to header arrival Breadcrumb.http derives start_timestamp/end_timestamp from its timestamp param, which defaulted to "now" at breadcrumb construction in the outer finally - after response body capture completes. Once requestDuration stopped covering that capture time, both timestamps drifted by however long capture took instead of anchoring to when headers actually arrived, shifting Session Replay network spans to the end of body download. Co-Authored-By: Claude <[email protected]> * fix(replay): Use injectable clock for breadcrumb timestamp getUtcDateTime() reads the system clock directly, unlike the rest of the SDK (e.g. Hub), which goes through SentryOptions.clock so it's fakeable in tests. Switch BreadcrumbClient to the same pattern and rewrite the timestamp regression test to assert call order via an injected clock instead of comparing against real wall-clock time. Co-Authored-By: Claude <[email protected]> * docs(flutter): Note networkDetailAllowUrls is Android-only Co-Authored-By: Claude <[email protected]> --------- Co-a…
📜 Description
Merges the
9.27.0release tag intov10-branch. Two of the release's changes needed porting to v10 APIs rather than a straight take:sentry_native_java_init.dart): 9.27.0 used the jni 0.14 method style (setNetworkDetailAllowUrls(...)); rewritten as property assignments against v10's jni 1.0 bindings. The newdartToJStringListhelper usesJArrayListto match the neighbouringdartToJList.sentry_flutter_test.dart): the release's new test usedoptions.log, removed in v10 by refactor: Remove options.log in favor of internalLogger #3932; rewritten to capture output viaSentryInternalLogger.configure, matching how the release's own 413 transport tests do it.Where the branches disagreed on intent, v10's decision was kept and the release's substance taken:
9.21.0#3879) and itskotlin-stdlib-jdk8gradle dependency (build(flutter): Migrate Android plugin to built-in Kotlin #3961 removed the$kotlin_versionvariable it referenced), but took thesentry-android8.53.0 bump.httpmoved intosentry_flutter's real dependencies (the new replay capture needs it) while keeping v10's widerjniconstraint.HttpTransportnow records the release's newDiscardReason.sendErrorfor 400-level responses instead ofnetworkError, with the four affected test expectations updated.10.0.0-alpha.3;docs/sdk-versions.mdgained the9.27.0row below the v10 alpha rows.One change beyond the merge:
dart analyzeflagged the portedBreadcrumbClientconstructor under v10's stricter lint set (prefer_initializing_formals, run withfatal-infosin CI). A named parameter can't be private, so an initializing formal is impossible here — added an ignore with a one-line reason, following the existing pattern insentry_database_executor.dart.💡 Motivation and Context
Keeps
v10-branchcurrent with the 9.x release line, as with the earlierMerge tag '9.26.0' into v10-branch.💚 How did you test it?
dart analyze/flutter analyzeclean forsentry,sentry_flutter,sentry_flutter_example, andsentry_sqflitedart format --output=none --set-exit-if-changed ./clean for all three packages, formatted with the fvm Dart 3.12 that CI's flutter jobs use📝 Checklist
sendDefaultPiiis enabled🔮 Next steps
Merge with a merge commit to preserve the tag's history in
v10-branch; squashing would drop the merge topology.Made with Cursor