Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
d34bf12
ref(android): Minor refactorings to Nav3 packaging, docs, and tests (…
0xadam-brown Nov 24, 2026
7e97735
docs(agents): Add comment, merge, test scope and PR target rules (#6745)
markushi Nov 24, 2026
7d8bd73
chore: Remove Cursor Bugbot review guidelines (#6746)
sentry-junior[bot] Nov 24, 2026
65feba7
chore(deps): bump the github-actions group across 1 directory with 5 …
dependabot[bot] Nov 24, 2026
5b17e77
chore(deps): bump io.sentry.android.gradle from 6.13.0 to 6.27.0 (#6734)
dependabot[bot] Nov 24, 2026
a847563
fix(android): support out-of-process crash handling on API 21+ (#6614)
jpnurmi Nov 25, 2026
e14402f
build(deps): Bump Spring Boot to 4.2.0 (#6762)
adinauer Nov 25, 2026
d236feb
chore(deps): bump jackson from 2.18.3 to 2.22.4 (#6755)
dependabot[bot] Nov 25, 2026
b90290e
chore(deps): bump org.gretty from 4.0.0 to 5.1.0 (#6674)
dependabot[bot] Nov 25, 2026
f48d88c
chore(deps): bump io.micrometer:context-propagation from 1.1.0 to 1.2…
dependabot[bot] Nov 25, 2026
193587d
docs: Pick lock type per module in AGENTS.md and REVIEWS.md (#6763)
sentry-junior[bot] Nov 25, 2026
34b1b47
build(deps): Ignore Ktor compatibility floor updates (#6765)
adinauer Nov 25, 2026
99a08e9
build(deps): Ignore Spring GraphQL compatibility updates (#6769)
adinauer Nov 25, 2026
d3c760c
build(deps): Ignore Logback compatibility floor updates (#6768)
adinauer Nov 25, 2026
9a7574b
perf(profiling): Read Perfetto trace straight into the envelope paylo…
sentry-junior[bot] Nov 25, 2026
76d8a3c
fix(replay): Mask Coil 3.1+ AsyncImage in Compose (#6759)
romtsn Nov 25, 2026
8f0f323
build(deps): Bump AGP to 9.5.2 and Gradle to 9.9.2 (#6767)
runningcode Nov 25, 2026
31ad03f
fix(core): Time out performance collection on a monotonic clock (#6739)
runningcode Nov 25, 2026
e9cae11
release: 8.66.0
markushi Nov 25, 2026
19614a2
chore(android): Remove the Sauce Labs macrobenchmark workflow (#6786)
sentry-junior[bot] Nov 25, 2026
8d196ce
Merge commit 'e9cae118d58922ff40cc8c90251e6c1d48b1cab5'
sentry-release-bot[bot] Nov 25, 2026
55a0615
build(opentelemetry): Bump OpenTelemetry dependencies to 2.34.0 (#6691)
sentry-junior[bot] Nov 26, 2026
4425a60
chore: Merge main into 9.x.x
adinauer Nov 26, 2026
d3614bc
fix(uitest): Use 9.x.x minSdk for sentry-uitest-android
sentry-junior[bot] Nov 26, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .claude/skills/create-java-pr/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ default body shape — it is the single source of truth for the sections and che
reproduce it from memory. Fill in each section based on the changes being PR'd, drop the HTML
comment hints, and check any checklist items that apply.

Before you create the PR, check which repository `gh` targets:

```bash
gh repo set-default --view
```

If it prints anything other than `getsentry/sentry-java`, or nothing, ask the user which repository
to target. Don't let `gh` pick a community fork.

Write the body to `/tmp/pr-body-<branch>.md`, with each `/` in the branch name replaced by `-`, not
to pr-writer's `/tmp/pr-body.md`: that file outlives sessions and can still hold another PR's body.
Only after the write succeeds, pass that file to `gh pr create` in place of pr-writer's:
Expand Down Expand Up @@ -169,7 +178,7 @@ Add an entry to `CHANGELOG.md` under the `## Unreleased` section.

Create the subsection under `## Unreleased` if it does not already exist.

**When rebasing:** A rebase onto `main` can land your branch after a release was cut, where the `## Unreleased` heading your entry lived under has since been renamed to that version number. If that happens, move your new entry into an `## Unreleased` section at the top of `CHANGELOG.md` (create the section if it no longer exists) so it is not left under an already-released version.
**When rebasing or merging `main`:** Your branch can land after a release was cut, where the `## Unreleased` heading your entry lived under has since been renamed to that version number. A merge does this without a conflict, sometimes with a duplicate subsection heading, so check the `## ` headings, not only the diff. If that happens, move your new entry into an `## Unreleased` section at the top of `CHANGELOG.md` (create the section if it no longer exists) so it is not left under an already-released version.

#### Entry format

Expand Down
15 changes: 12 additions & 3 deletions .claude/skills/test/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,23 @@ If the user picks a specific method, use `--tests="*ClassName.methodName"` as th

With a test class filter:
```bash
./gradlew ':<module>:<task>' --tests="*<filter>*" --info
./gradlew ':<module>:<task>' --tests="*<filter>*"
```

Without a filter:
Without a filter, only when the user asks for the whole module (CI runs full suites):
```bash
./gradlew ':<module>:<task>' --info
./gradlew ':<module>:<task>'
```

When you choose the tests yourself, filter to the classes or packages the change touches, plus the
tests of direct callers. Pass `--tests` once per pattern:
```bash
./gradlew ':<module>:<task>' --tests="io.sentry.foo.*" --tests="*BarTest*"
```

Don't add `--rerun` or `--no-build-cache` by default. An `UP-TO-DATE` test task already passed on the
same inputs. Use them only for a named doubt, such as a suspected flaky test.

## Step 3b: Run an Integration Test Suite

The suite's task is named after its source set directory: `src/integrationTestWebflux/...` runs
Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ updates:
- dependency-name: "io.opentelemetry*"
# Servlet 3.1 is the minimum supported API and must remain the production compile target.
- dependency-name: "javax.servlet:javax.servlet-api"
# Logback 1.2 is the compatibility floor and must remain the production compile target.
- dependency-name: "ch.qos.logback:logback-classic"
# Spring GraphQL 1.0 is the Spring 5 and Spring Boot 2 compatibility line.
- dependency-name: "org.springframework.graphql:spring-graphql"
# Ktor 3.0 is the compatibility floor; the default suite already tests the latest version.
- dependency-name: "io.ktor:ktor-bom"
# DGS 5+ needs Spring Boot 3; the sample is on Spring Boot 2.
- dependency-name: "com.netflix.graphql.dgs*"
commit-message:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/agp-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ jobs:
strategy:
fail-fast: false
matrix:
agp: [ '9.0.0', '9.4.0', '9.5.1' ]
agp: [ '9.0.0', '9.4.0', '9.5.2' ]
integrations: [ true, false ]

name: AGP Matrix Release - AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }}
env:
VERSION_AGP: ${{ matrix.agp }}
APPLY_SENTRY_INTEGRATIONS: ${{ matrix.integrations }}
# Upload replay snapshots from one cell only. Forks don't have access to the upload secret.
UPLOAD_REPLAY_SNAPSHOTS: ${{ matrix.agp == '9.5.1' && matrix.integrations && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}
UPLOAD_REPLAY_SNAPSHOTS: ${{ matrix.agp == '9.5.2' && matrix.integrations && (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) }}

steps:
- name: Checkout Repo
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1

- name: Initialize CodeQL
uses: github/codeql-action/init@33d7b85da1a04171e211befe2c739303b9a4c066 # pin@v2
uses: github/codeql-action/init@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # pin@v2
with:
languages: 'java'

Expand All @@ -38,4 +38,4 @@ jobs:
./gradlew buildForCodeQL --no-build-cache

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@33d7b85da1a04171e211befe2c739303b9a4c066 # pin@v2
uses: github/codeql-action/analyze@1bd86f2fdb4b86187fa4059f16f31a3202acc9ea # pin@v2
65 changes: 0 additions & 65 deletions .github/workflows/integration-tests-macrobenchmark.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr-classifiers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
# is the classifiers repository, at a pinned commit.
- name: Get a token for the classifiers repository
id: app
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
client-id: ${{ vars.CLASSIFIERS_APP_CLIENT_ID }}
private-key: ${{ secrets.CLASSIFIERS_APP_KEY }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
steps:
- name: Get auth token
id: token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0
with:
app-id: ${{ vars.SENTRY_RELEASE_BOT_CLIENT_ID }}
private-key: ${{ secrets.SENTRY_RELEASE_BOT_PRIVATE_KEY }}
Expand All @@ -33,7 +33,7 @@ jobs:
# Needs to be set, otherwise git describe --tags will fail with: No names found, cannot describe anything
fetch-depth: 0
- name: Prepare release
uses: getsentry/craft@0da9309228741a4c300d3c87ed7dcafa8f703525 # 3.12.0
uses: getsentry/craft@b2a6fa4904f37b46f34b82330e0f3bf02a40f681 # 3.13.0
env:
GITHUB_TOKEN: ${{ steps.token.outputs.token }}
with:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Compose UI Matrix
name: Session Replay Dependency Matrix

on:
push:
Expand All @@ -11,33 +11,43 @@ concurrency:
cancel-in-progress: true

jobs:
compose-ui-matrix:
replay-dependency-matrix:
timeout-minutes: 30
runs-on: ubuntu-latest
name: Compose UI Matrix
name: ${{ matrix.name }} Matrix
strategy:
fail-fast: false
matrix:
include:
# Runs every version in gradle/compose-ui-versions.json
- name: Compose UI
task: composeUiTest
# Runs every version in gradle/coil3-versions.json
- name: Coil 3
task: coil3Test

steps:
- name: Checkout Repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

- name: Setup Java Version
uses: actions/setup-java@77dd5b2ce225ea11469928ac317850245a74ae78 # v6.2.0
uses: actions/setup-java@d1374f8ac74474200d16ef8ecee22c7ae7a51880 # v6.3.0
with:
distribution: 'temurin'
java-version: '21'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@8da46b539cd8fe6ab27ca75128919a18d757604c # v6.4.1

# Runs every version in gradle/compose-ui-versions.json; --continue reports each failing one.
# --continue reports each failing version.
- name: Run Session Replay unit tests
run: ./gradlew :sentry-android-replay:composeUiTest --continue
run: ./gradlew :sentry-android-replay:${{ matrix.task }} --continue

- name: Upload test results
if: always()
uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7
with:
name: test-results-compose-ui
name: test-results-${{ matrix.task }}
path: |
sentry-android-replay/build/reports/*
sentry-android-replay/build/test-results/**/*.xml
Expand All @@ -46,7 +56,7 @@ jobs:
uses: phoenix-actions/test-reporting@7317eea6e13c47348dd0bb318669485157c518d6 # pin@v16
if: always()
with:
name: JUnit Compose UI
name: JUnit ${{ matrix.name }}
path: |
sentry-android-replay/build/test-results/**/*.xml
reporter: java-junit
Expand Down
35 changes: 0 additions & 35 deletions .sauce/sentry-uitest-android-macrobenchmark.yml

This file was deleted.

37 changes: 33 additions & 4 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ Rules can be combined — a tracing scope issue may need both `scopes` and `open
There is no rule for Android profiling yet; read the `sentry-android-core` profiling code
directly and fetch related rules such as `options`, `offline`, or `api` as needed.

## Code Review

When reviewing a pull request, follow [`REVIEWS.md`](REVIEWS.md).

## Project Overview

This is the Sentry Java/Android SDK - a comprehensive error monitoring and performance tracking SDK for Java and Android applications. The repository contains multiple modules for different integrations and platforms.
Expand Down Expand Up @@ -80,8 +84,9 @@ resolves the per-module test task, including integration test suites, for you.
3. **Use todo tracking**: Work through todo items, marking them as complete as you go
4. **High-level communication**: Give high-level explanations of changes made, not step-by-step descriptions
5. **Simplicity first**: Make every task and code change as simple as possible. Avoid massive or complex changes. Impact as little code as possible.
6. **Format and regenerate**: Once done, format code and regenerate .api files: `make format api`
7. **Propose commit**: As final step, git stage relevant files and propose (but not execute) a single git commit command. This applies to implementation work; when the task is to open a PR, the `create-java-pr` skill takes over from here and does commit, push, and open it.
6. **Don't code for impossible states**: Before you add state tracking or heuristics around a framework object, find out its real lifecycle.
7. **Format and regenerate**: Once done, format code and regenerate .api files: `make format api`
8. **Propose commit**: As final step, git stage relevant files and propose (but not execute) a single git commit command. This applies to implementation work; when the task is to open a PR, the `create-java-pr` skill takes over from here and does commit, push, and open it.

## Repository Skills

Expand Down Expand Up @@ -133,6 +138,21 @@ The repository is organized into multiple modules:
- **Formatting**: Enforced via Spotless
- **API Compatibility**: Binary compatibility is enforced. `.api` files are generated, never hand-edited

### Comments

The default is no comment. Add one only when it gives a reason that the code, the names, and the
class Javadoc don't, in one short sentence: a rationale, a gotcha, the meaning of a magic number,
why an empty catch is safe, or a comment this file requires (for example on a broad catch).

- Don't describe what the next line does, in production code or in tests.
- Don't repeat what a method Javadoc already describes.
- Existing narrating comments are not a pattern to copy.

**Javadoc of an interface, callback, or model class describes only the type itself**, in general
terms. Requirements on the implementer are fine ("Must be fast, no I/O."). Don't name who calls it,
when, or on which thread: a type can't promise how others use it. A thread contract belongs on the
methods of the component that owns the thread.

### Exception Handling

The following section applies only in cases where the spec (sentry-docs) do not define an exception
Expand Down Expand Up @@ -211,7 +231,10 @@ Two more rules that catch most of the rest:
- **Read mutable shared state once per operation.** Re-reading the same field for several
decisions in one pass lets it change mid-pass, so the results disagree with each other.

Prefer `AutoClosableReentrantLock` over `synchronized`, matching the rest of the codebase.
**Which lock to use depends on the module.** In JVM and shared modules, including `sentry` core,
use `AutoClosableReentrantLock`: `synchronized` pins virtual threads on JDK 21–23. In Android-only
modules (`sentry-android-*`), use `synchronized`, since Android has no virtual threads. Don't rewrite
existing locks only to switch between the two.

### Measuring Time

Expand Down Expand Up @@ -281,7 +304,13 @@ gh pr view --json url -q '.url'

User-facing changes get an entry under the `## Unreleased` section of `CHANGELOG.md`. The
`create-java-pr` skill is the source of truth for the full changelog and PR workflow, including
subsection selection and the rebase caveat when a release renames `## Unreleased`.
subsection selection and the rebase and merge caveat when a release renames `## Unreleased`.

### After Merging `main` or Resolving Conflicts

Before you commit the merge, format and regenerate (workflow rule 7) and check the changelog entry
(the `create-java-pr` rebase and merge caveat). Then compile and run the tests of the modules you
changed: `main` adds build checks over time, so code that passed before the merge can fail after it.

## Useful Resources

Expand Down
Loading
Loading