Skip to content

Commit 4029de4

Browse files
authored
Merge branch 'main' into stefanosiano/fix/remove-executor-service-limit
2 parents 636113d + 6405ec5 commit 4029de4

File tree

24 files changed

+429
-76
lines changed

24 files changed

+429
-76
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
3737

3838
- name: Initialize CodeQL
39-
uses: github/codeql-action/init@4e94bd11f71e507f7f87df81788dff88d1dacbfb # pin@v2
39+
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # pin@v2
4040
with:
4141
languages: 'java'
4242

@@ -45,4 +45,4 @@ jobs:
4545
./gradlew buildForCodeQL --no-build-cache
4646
4747
- name: Perform CodeQL Analysis
48-
uses: github/codeql-action/analyze@4e94bd11f71e507f7f87df81788dff88d1dacbfb # pin@v2
48+
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # pin@v2
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: SDK Size Analysis
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
build:
15+
name: Build and Analyze SDK Size
16+
runs-on: ubuntu-latest
17+
18+
env:
19+
GRADLE_ENCRYPTION_KEY: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
20+
21+
steps:
22+
- name: Checkout Repo
23+
uses: actions/checkout@v5
24+
25+
- name: Setup Java Version
26+
uses: actions/setup-java@v5
27+
with:
28+
distribution: "temurin"
29+
java-version: "17"
30+
31+
# Workaround for https://github.com/gradle/actions/issues/21 to use config cache
32+
- name: Cache buildSrc
33+
uses: actions/cache@v4
34+
with:
35+
path: buildSrc/build
36+
key: build-logic-${{ hashFiles('buildSrc/src/**', 'buildSrc/build.gradle.kts','buildSrc/settings.gradle.kts') }}
37+
38+
- name: Setup Gradle
39+
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2
40+
with:
41+
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
42+
43+
- name: Size Analysis
44+
run: ./gradlew :sentry-android-integration-tests:test-app-size:bundleRelease
45+
env:
46+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}

.github/workflows/spring-boot-2-matrix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
-e '/.*"sentry-android-integration-tests:sentry-uitest-android",/d' \
8181
-e '/.*"sentry-android-integration-tests:sentry-uitest-android-critical",/d' \
8282
-e '/.*"sentry-android-integration-tests:test-app-sentry",/d' \
83+
-e '/.*"sentry-android-integration-tests:test-app-size",/d' \
8384
-e '/.*"sentry-samples:sentry-samples-android",/d' \
8485
-e '/.*"sentry-android-replay",/d' \
8586
settings.gradle.kts
@@ -91,6 +92,7 @@ jobs:
9192
-e '/.*"sentry-uitest-android-benchmark",/d' \
9293
-e '/.*"sentry-uitest-android-critical",/d' \
9394
-e '/.*"test-app-sentry",/d' \
95+
-e '/.*"test-app-size",/d' \
9496
-e '/.*"sentry-samples-android",/d' \
9597
build.gradle.kts
9698

.github/workflows/spring-boot-3-matrix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
-e '/.*"sentry-android-integration-tests:sentry-uitest-android",/d' \
8181
-e '/.*"sentry-android-integration-tests:sentry-uitest-android-critical",/d' \
8282
-e '/.*"sentry-android-integration-tests:test-app-sentry",/d' \
83+
-e '/.*"sentry-android-integration-tests:test-app-size",/d' \
8384
-e '/.*"sentry-samples:sentry-samples-android",/d' \
8485
-e '/.*"sentry-android-replay",/d' \
8586
settings.gradle.kts
@@ -91,6 +92,7 @@ jobs:
9192
-e '/.*"sentry-uitest-android-benchmark",/d' \
9293
-e '/.*"sentry-uitest-android-critical",/d' \
9394
-e '/.*"test-app-sentry",/d' \
95+
-e '/.*"test-app-size",/d' \
9496
-e '/.*"sentry-samples-android",/d' \
9597
build.gradle.kts
9698

.github/workflows/spring-boot-4-matrix.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ jobs:
8080
-e '/.*"sentry-android-integration-tests:sentry-uitest-android",/d' \
8181
-e '/.*"sentry-android-integration-tests:sentry-uitest-android-critical",/d' \
8282
-e '/.*"sentry-android-integration-tests:test-app-sentry",/d' \
83+
-e '/.*"sentry-android-integration-tests:test-app-size",/d' \
8384
-e '/.*"sentry-samples:sentry-samples-android",/d' \
8485
-e '/.*"sentry-android-replay",/d' \
8586
settings.gradle.kts
@@ -91,6 +92,7 @@ jobs:
9192
-e '/.*"sentry-uitest-android-benchmark",/d' \
9293
-e '/.*"sentry-uitest-android-critical",/d' \
9394
-e '/.*"test-app-sentry",/d' \
95+
-e '/.*"test-app-size",/d' \
9496
-e '/.*"sentry-samples-android",/d' \
9597
build.gradle.kts
9698

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,33 @@
22

33
## Unreleased
44

5+
### Improvements
6+
7+
- Fallback to distinct-id as user.id logging attribute when user is not set ([#4847](https://github.com/getsentry/sentry-java/pull/4847))
8+
- Report Timber.tag() as `timber.tag` log attribute ([#4845](https://github.com/getsentry/sentry-java/pull/4845))
9+
- Session Replay: Add screenshot strategy serialization to RRWeb events ([#4851](https://github.com/getsentry/sentry-java/pull/4851))
10+
11+
### Dependencies
12+
13+
- Bump Native SDK from v0.11.3 to v0.12.1 ([#4859](https://github.com/getsentry/sentry-java/pull/4859))
14+
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#0121)
15+
- [diff](https://github.com/getsentry/sentry-native/compare/0.11.3...0.12.1)
16+
17+
## 8.25.0
18+
519
### Fixes
620

721
- Removed SentryExecutorService limit for delayed scheduled tasks ([#4846](https://github.com/getsentry/sentry-java/pull/4846))
822
- [ANR] Removed AndroidTransactionProfiler lock ([#4817](https://github.com/getsentry/sentry-java/pull/4817))
23+
- Avoid ExecutorService for DefaultCompositePerformanceCollector timeout ([#4841](https://github.com/getsentry/sentry-java/pull/4841))
24+
- This avoids infinite data collection for never stopped transactions, leading to OOMs
925
- Fix wrong .super() call in SentryTimberTree ([#4844](https://github.com/getsentry/sentry-java/pull/4844))
1026

1127
### Improvements
1228

1329
- [ANR] Defer some class availability checks ([#4825](https://github.com/getsentry/sentry-java/pull/4825))
30+
- Collect PerformanceCollectionData only for sampled transactions ([#4834](https://github.com/getsentry/sentry-java/pull/4834))
31+
- **Breaking change**: Transactions with a deferred sampling decision (`sampled == null`) won't be collecting any performance data anymore (CPU, RAM, slow/frozen frames).
1432

1533
### Dependencies
1634

build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ plugins {
3030
alias(libs.plugins.gradle.versions) apply false
3131
alias(libs.plugins.spring.dependency.management) apply false
3232
id("io.sentry.javadoc.aggregate")
33+
alias(libs.plugins.sentry) apply false
3334
}
3435

3536
buildscript {
@@ -83,6 +84,7 @@ apiValidation {
8384
"sentry-uitest-android-critical",
8485
"test-app-plain",
8586
"test-app-sentry",
87+
"test-app-size",
8688
"sentry-samples-netflix-dgs"
8789
)
8890
)

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
1111
android.useAndroidX=true
1212

1313
# Release information
14-
versionName=8.24.0
14+
versionName=8.25.0
1515

1616
# Override the SDK name on native crashes on Android
1717
sentryAndroidSdkName=sentry.native.android

gradle/libs.versions.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ springboot4 = { id = "org.springframework.boot", version.ref = "springboot4" }
6565
spring-dependency-management = { id = "io.spring.dependency-management", version = "1.0.11.RELEASE" }
6666
gretty = { id = "org.gretty", version = "4.0.0" }
6767
animalsniffer = { id = "ru.vyarus.animalsniffer", version = "2.0.1" }
68+
sentry = { id = "io.sentry.android.gradle", version = "6.0.0-alpha.6"}
6869

6970
[libraries]
7071
apache-httpclient = { module = "org.apache.httpcomponents.client5:httpclient5", version = "5.0.4" }
@@ -134,7 +135,7 @@ quartz = { module = "org.quartz-scheduler:quartz", version = "2.3.0" }
134135
reactor-core = { module = "io.projectreactor:reactor-core", version = "3.5.3" }
135136
retrofit = { module = "com.squareup.retrofit2:retrofit", version.ref = "retrofit" }
136137
retrofit-gson = { module = "com.squareup.retrofit2:converter-gson", version.ref = "retrofit" }
137-
sentry-native-ndk = { module = "io.sentry:sentry-native-ndk", version = "0.11.3" }
138+
sentry-native-ndk = { module = "io.sentry:sentry-native-ndk", version = "0.12.1" }
138139
servlet-api = { module = "javax.servlet:javax.servlet-api", version = "3.1.0" }
139140
servlet-jakarta-api = { module = "jakarta.servlet:jakarta.servlet-api", version = "6.1.0" }
140141
slf4j-api = { module = "org.slf4j:slf4j-api", version.ref = "slf4j" }
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

0 commit comments

Comments
 (0)