Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bump Spring Boot Jakarta from 3.2.0 to 3.3.0 #3482

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
bf5857e
Hubs/Scopes Merge 1 - Introduce `IScopes` interface. (#3297)
adinauer Apr 16, 2024
ca5593e
Hubs/Scopes Merge 2 - Replace `IHub` with `IScopes` in core (#3298)
adinauer Apr 16, 2024
30990f6
Hubs/Scopes Merge 3 - Replace `IHub` with `IScopes` in Android core (…
adinauer Apr 16, 2024
baa35e1
Hubs/Scopes Merge 4 - Replace `IHub` with `IScopes` in Android integr…
adinauer Apr 16, 2024
00c2535
Hubs/Scopes Merge 5 - Replace `IHub` with `IScopes` in apollo integra…
adinauer Apr 16, 2024
c1840cf
Hubs/Scopes Merge 6 - Replace `IHub` with `IScopes` in OkHttp integra…
adinauer Apr 16, 2024
784341e
Hubs/Scopes Merge 7 - Replace `IHub` with `IScopes` in GraphQL integr…
adinauer Apr 16, 2024
c0be8ea
Hubs/Scopes Merge 8 - Replace `IHub` with `IScopes` in logging integr…
adinauer Apr 16, 2024
76ec6b0
Hubs/Scopes Merge 9 - Replace `IHub` with `IScopes` in more integrati…
adinauer Apr 16, 2024
c552a2c
Hubs/Scopes Merge 10 - Replace `IHub` with `IScopes` in OTel integrat…
adinauer Apr 16, 2024
495ed99
Hubs/Scopes Merge 11 - Replace `IHub` with `IScopes` in Spring 5 / Sp…
adinauer Apr 16, 2024
e11f8b1
Hubs/Scopes Merge 12 - Replace `IHub` with `IScopes` in Spring 6 / Sp…
adinauer Apr 16, 2024
ec30e19
Hubs/Scopes Merge 13 - Replace `IHub` with `IScopes` in samples (#3310)
adinauer Apr 16, 2024
7a0cd9f
Hubs/Scopes Merge 14 - Add `Scopes` to replace `Hub` (#3311)
adinauer Apr 19, 2024
edb4be2
Hubs/Scopes Merge 15 - Replace `ThreadLocal` with scope storage (#3317)
adinauer Apr 19, 2024
a1bfa95
Hubs / Scopes Merge 16 - Move client and throwable to span map to sco…
adinauer Apr 19, 2024
6390bc6
Hubs / Scopes Merge 17 - Add global scope (#3319)
adinauer Apr 19, 2024
6ee5169
Hubs / Scopes Merge 18 - Implement `pushScope` ,`popScope` and `withS…
adinauer Apr 19, 2024
dd992aa
Hubs/Scopes Merge 19 - Add `pushIsolationScope` and fork methods (#3343)
adinauer Apr 19, 2024
385666d
Hubs/Scopes Merge 20 - Use separate scope for current, isolation and …
adinauer Apr 19, 2024
a941eb8
Hubs/Scopes Merge 21 - Allow controlling which scope `configureScope`…
adinauer Apr 22, 2024
9546564
Hubs/Scopes Merge 22 - Combine global, isolation and current scope (#…
adinauer Apr 22, 2024
28144c6
Hubs/Scopes Merge 23 - Use new API for CRONS integrations (#3347)
adinauer Apr 22, 2024
9a64a0b
Hubs/Scopes Merge 24 - Use new API in Spring integrations (#3348)
adinauer Apr 22, 2024
153f678
Hubs/Scopes Merge 25 - Use new API in Servlet integrations (#3349)
adinauer Apr 22, 2024
e0cb935
Hubs/Scopes Merge 26 - Use new API for Kotlin coroutines and SentryWr…
adinauer Apr 22, 2024
a3ba20a
Hubs/Scopes Merge 27 - Discussions (#3352)
adinauer Apr 22, 2024
2d01626
Hubs/Scopes Merge 28 - Fix breadcrumb ordering (#3355)
adinauer Apr 23, 2024
4650d04
Hubs Scopes Merge 29 - Mark TODOs related to Hubs/Scopes Merge with […
adinauer Apr 23, 2024
e296fb6
Hubs/Scopes Merge 30 - Add `getGlobalScope` and `forkedRootScopes` to…
adinauer Apr 23, 2024
d45c721
Hubs/Scopes Merge 31 - Fix `EventProcessor` ordering on `Scopes` (#3360)
adinauer May 2, 2024
10f8e44
Hubs/Scopes Merge 32 - Reuse code in Scopes (#3361)
adinauer May 2, 2024
2e11284
Hubs/Scopes Merge 33 - No longer replace global scope (#3362)
adinauer May 2, 2024
dcda5c7
Hubs/Scopes Merge 34 - Replace hub occurrences in comments, var names…
adinauer May 2, 2024
3a65a07
Hubs/Scopes Merge 35 - Implement `ScopesTest` (#3370)
adinauer May 2, 2024
dcd6d1e
Hubs/Scopes Merge 36 - Implement `CombinedScopeViewTest` (#3371)
adinauer May 2, 2024
cac8cb8
Hubs/Scopes Merge 37 - Fix combined `Contexts` (#3374)
adinauer May 2, 2024
9349303
Hubs/Scopes Merge 38 - Use `ScopeType.COMBINED` for cross platform (`…
adinauer May 2, 2024
0cc4e73
Hubs/Scopes Merge 39 - Review Changes (#3381)
adinauer May 2, 2024
aa3cd3e
Hubs/Scopes Merge 40 - `Scopes.isEnabled` now checks `getClient().isE…
adinauer May 2, 2024
9b61758
Hubs/Scopes Merge 41 - Use `SentryOptions.empty()` (#3387)
adinauer May 2, 2024
05ff878
Hubs/Scopes Merge 42 - Remove `Hub` (#3389)
adinauer May 2, 2024
5e2029b
Hubs/Scopes Merge 42b - Merge fingerprints from all scopes (#3395)
adinauer May 3, 2024
e7007dd
Hubs/Scopes Merge 42d - Close previous scopes before binding a new gl…
adinauer May 7, 2024
dc56a6a
Report suppressed exceptions as exception group (#3396)
adinauer May 13, 2024
9114f94
HSM 43a Fix Android Tests Alternative (#3418)
lbloder May 14, 2024
dd88506
Merge branch 'main' into 8.x.x
adinauer May 14, 2024
4efa6f7
fix after merge
adinauer May 14, 2024
6c31cc0
8.x Cleanup (#3419)
adinauer May 14, 2024
ea117ff
Add changelog for `8.x` (alpha) release (#3421)
adinauer May 14, 2024
218eb60
release: 8.0.0-alpha.1
getsentry-bot May 14, 2024
5a3f296
Merge branch 'release/8.0.0-alpha.1' into 8.x.x
May 14, 2024
337f79a
Merge branch 'main' into 8.x.x
lbloder May 27, 2024
c2f2cc7
Add data fetching environment hint to breadcrumb (#3413) (#3431)
ooraini May 28, 2024
a3c251e
Move NDK from sentry-java to sentry-native (#3189)
markushi May 28, 2024
1161c1a
POTEL 1 - Use OpenTelemetry for Performance and `Scopes` propagation …
adinauer Jun 18, 2024
f85f1e2
POTEL 2 - Promote OpenTelemetry Span attributes (#3402)
adinauer Jun 18, 2024
a43af1c
POTEL 3 - Use OpenTelemetry in Sentry Performance API (#3416)
adinauer Jun 18, 2024
f6bd820
POTEL 4 - Deduplicate `SpanInfo` extraction (#3423)
adinauer Jun 18, 2024
3975e93
POTEL 5 - Start and end time, data, tags etc. now work with Sentry AP…
adinauer Jun 18, 2024
504ef52
POTEL 6 - Use OpenTelemetry span status for Sentry span API (#3439)
adinauer Jun 18, 2024
2b8a037
POTEL 7 - Tracing (#3445)
adinauer Jun 18, 2024
aa70b16
POTEL 8 - Inherit OTel span ID and do not sample again when sending t…
adinauer Jun 18, 2024
210c992
POTEL 9 - Tracing Fixes and Baggage (#3455)
adinauer Jun 18, 2024
67490cd
POTEL 10 - Cleanup (#3460)
adinauer Jun 18, 2024
e50d955
POTEL 11 - Move sampling logic into OTel Sampler (#3462)
adinauer Jun 18, 2024
dd6307a
POTEL 12 - Remove internal span attributes so they are not sent to Se…
adinauer Jun 18, 2024
94ba63c
POTEL 13 - Use transaction name (#3464)
adinauer Jun 18, 2024
5c9fb87
POTEL 14 - Keep Sentry span `op` and OTel span `name` in sync (#3468)
adinauer Jun 18, 2024
ecfcb2b
POTEL 15 - More cleanup (#3469)
adinauer Jun 18, 2024
19d0b3f
POTEL 16 - Add `ignoredSpanOrigins` option (#3477)
adinauer Jun 18, 2024
967fa5f
Reuse `TracesSampler` instance (#3479)
adinauer Jun 18, 2024
394677f
chore: bump Spring Boot Jakarta from 3.2.0 to 3.3.0
codespearhead Jun 14, 2024
11de2d2
Merge branch 'main' into 8.x.x
adinauer Jun 19, 2024
eff6399
Catch exceptions when closing integrations (#3488)
adinauer Jun 24, 2024
9f7e431
POTEL 17 - Use `NoOpSpanFactory` for `SentryOptions.empty` (#3489)
adinauer Jun 24, 2024
738c5fa
POTEL 18 - Use correct `SentryOptions` for `SentryClient` constructor…
adinauer Jun 24, 2024
54e6568
POTEL 19 - Review feedback (#3491)
adinauer Jun 24, 2024
d90e0f9
POTEL 20 - Use `SpanOptions.startTimestamp` in `Span` constructor (#3…
adinauer Jun 24, 2024
407a877
POTEL 21 - Drop OpenTelemetry spans for internal Sentry requests (#3508)
adinauer Jun 24, 2024
42273e8
POTEL 22 - Improve Changelog (#3513)
adinauer Jun 25, 2024
8354619
POTEL 23 - Bump OTel versions (#3514)
adinauer Jun 25, 2024
6c89ff7
POTEL 24 - Fixes after merge and some more PR comments have been addr…
adinauer Jun 25, 2024
1a4c9e8
POTEL 25 - Workaround for `sentry-opentelemetry-agent` with `SENTRY_A…
adinauer Jun 25, 2024
d924cd1
POTEL 26 - Customize OpenTelemetry `Scope.close` behaviour (#3517)
adinauer Jun 26, 2024
af66eb2
POTEL 27 - Rename classes and mark some classes internal (#3518)
adinauer Jun 26, 2024
98cd975
POTEL 28 - Use `auto.opentelemetry` for POTel span origin (#3523)
adinauer Jun 26, 2024
783e112
Remove sentry-native submodule again; ignore failing test (#3525)
adinauer Jun 26, 2024
8268911
release: 8.0.0-alpha.2
getsentry-bot Jun 26, 2024
d7f4cd4
Merge branch 'release/8.0.0-alpha.2' into 8.x.x
Jun 26, 2024
935bb1d
Removed sentry-android-okhttp module (#3510)
stefanosiano Jul 1, 2024
29ac921
Merge branch 'main' into 8.x.x
stefanosiano Jul 1, 2024
cee271c
Format code
getsentry-bot Jul 1, 2024
437936e
Fix main merge (#3537)
stefanosiano Jul 2, 2024
c7232fe
Parse and use `send-default-pii` and `max-request-body-size` from `se…
adinauer Jul 2, 2024
a62056e
Support spans that are split into multiple batches (#3539)
adinauer Jul 2, 2024
92bc9e4
Merge branch '8.x.x' into chore/bump-spring-boot-jakarta-from-3.2.0-t…
adinauer Jul 2, 2024
a9d69ca
Revert "Merge branch '8.x.x' into chore/bump-spring-boot-jakarta-from…
adinauer Jul 2, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/agp-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
**/build/outputs/mapping/release/*

- name: Test Report
uses: phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e # pin@v15
uses: phoenix-actions/test-reporting@41efe7ebebe7ef156ef46f6b0acf50ec0f10315b # pin@v12
if: always()
with:
name: JUnit AGP ${{ matrix.agp }} - Integrations ${{ matrix.integrations }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand All @@ -50,7 +50,7 @@ jobs:
**/build/reports/*

- name: Test Report
uses: phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e # pin@v15
uses: phoenix-actions/test-reporting@41efe7ebebe7ef156ef46f6b0acf50ec0f10315b # pin@v12
if: always()
with:
name: JUnit Build
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

- name: Initialize CodeQL
uses: github/codeql-action/init@23acc5c183826b7a8a97bce3cecc52db901f8251 # pin@v2
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # pin@v2
with:
languages: ${{ matrix.language }}

Expand All @@ -55,4 +55,4 @@ jobs:
./gradlew buildForCodeQL

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@23acc5c183826b7a8a97bce3cecc52db901f8251 # pin@v2
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # pin@v2
2 changes: 1 addition & 1 deletion .github/workflows/enforce-license-compliance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/generate-javadocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: gradle/wrapper-validation-action@88425854a36845f9c881450d9660b5fd46bee142 # pin@v1
- uses: gradle/wrapper-validation-action@699bb18358f12c5b78b37bb0111d3a0e2276e0e2 # pin@v1
8 changes: 4 additions & 4 deletions .github/workflows/integration-tests-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand All @@ -47,7 +47,7 @@ jobs:
run: make assembleBenchmarks

- name: Run All Tests in SauceLab
uses: saucelabs/saucectl-run-action@39e4f0666ca8ecb4b60847213c6e0fbd6a0c2bd8 # pin@v3
uses: saucelabs/saucectl-run-action@7fe025ef1fdc6f211add3751a6c7d8bba27ba9b1 # pin@v3
if: github.event_name != 'pull_request' && env.SAUCE_USERNAME != null
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -57,7 +57,7 @@ jobs:
config-file: .sauce/sentry-uitest-android-benchmark.yml

- name: Run one test in SauceLab
uses: saucelabs/saucectl-run-action@39e4f0666ca8ecb4b60847213c6e0fbd6a0c2bd8 # pin@v3
uses: saucelabs/saucectl-run-action@7fe025ef1fdc6f211add3751a6c7d8bba27ba9b1 # pin@v3
if: github.event_name == 'pull_request' && env.SAUCE_USERNAME != null
env:
GITHUB_TOKEN: ${{ github.token }}
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/integration-tests-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand All @@ -42,7 +42,7 @@ jobs:
run: make assembleUiTests

- name: Install SauceLabs CLI
uses: saucelabs/saucectl-run-action@39e4f0666ca8ecb4b60847213c6e0fbd6a0c2bd8 # pin@v3
uses: saucelabs/saucectl-run-action@7fe025ef1fdc6f211add3751a6c7d8bba27ba9b1 # pin@v3
env:
GITHUB_TOKEN: ${{ github.token }}
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/system-tests-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
java-version: '17'

- name: Setup Gradle
uses: gradle/actions/setup-gradle@2cd2a6e951bd0b53f55a08e4e4c6f2586f3a36b9 # pin@v3
uses: gradle/actions/setup-gradle@579fbbe7221704325eb4c4d4bf20c2b0859fba76 # pin@v3
with:
gradle-home-cache-cleanup: true

Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
spring-server.txt

- name: Test Report
uses: phoenix-actions/test-reporting@f957cd93fc2d848d556fa0d03c57bc79127b6b5e # pin@v15
uses: phoenix-actions/test-reporting@41efe7ebebe7ef156ef46f6b0acf50ec0f10315b # pin@v12
if: always()
with:
name: JUnit System Tests ${{ matrix.sample }}
Expand Down
16 changes: 2 additions & 14 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,18 @@
# Changelog

Check failure on line 1 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / danger / danger

Please consider adding a changelog entry for the next release.

Check notice on line 1 in CHANGELOG.md

View workflow job for this annotation

GitHub Actions / danger / danger

### Instructions and example for changelog Please add an entry to `CHANGELOG.md` to the "Unreleased" section. Make sure the entry includes this PR's number. Example: ```markdown ## Unreleased - bump Spring Boot Jakarta from 3.2.0 to 3.3.0 ([#3482](https://github.com/getsentry/sentry-java/pull/3482)) ``` If none of the above apply, you can opt out of this check by adding `#skip-changelog` to the PR description.

## 7.11.0

### Features

- Report dropped spans ([#3528](https://github.com/getsentry/sentry-java/pull/3528))
## Unreleased

### Fixes

- Fix duplicate session start for React Native ([#3504](https://github.com/getsentry/sentry-java/pull/3504))
- Move onFinishCallback before span or transaction is finished ([#3459](https://github.com/getsentry/sentry-java/pull/3459))
- Add timestamp when a profile starts ([#3442](https://github.com/getsentry/sentry-java/pull/3442))
- Move fragment auto span finish to onFragmentStarted ([#3424](https://github.com/getsentry/sentry-java/pull/3424))
- Remove profiling timeout logic and disable profiling on API 21 ([#3478](https://github.com/getsentry/sentry-java/pull/3478))
- Properly reset metric flush flag on metric emission ([#3493](https://github.com/getsentry/sentry-java/pull/3493))
- Use SecureRandom in favor of Random for Metrics ([#3495](https://github.com/getsentry/sentry-java/pull/3495))
- Fix UncaughtExceptionHandlerIntegration Memory Leak ([#3398](https://github.com/getsentry/sentry-java/pull/3398))
- Deprecated `User.segment`. Use a custom tag or context instead. ([#3511](https://github.com/getsentry/sentry-java/pull/3511))
- Fix duplicated http spans ([#3526](https://github.com/getsentry/sentry-java/pull/3526))
- When capturing unhandled hybrid exception session should be ended and new start if need ([#3480](https://github.com/getsentry/sentry-java/pull/3480))

### Dependencies

- Bump Native SDK from v0.7.0 to v0.7.2 ([#3314](https://github.com/getsentry/sentry-java/pull/3314))
- [changelog](https://github.com/getsentry/sentry-native/blob/master/CHANGELOG.md#072)
- [diff](https://github.com/getsentry/sentry-native/compare/0.7.0...0.7.2)
- Bump Spring Boot Jakarta from 3.2.0 to 3.3.0

## 7.10.0

Expand Down
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Config.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ object Config {
val kotlinStdLib = "stdlib-jdk8"

val springBootVersion = "2.7.5"
val springBoot3Version = "3.2.0"
val springBoot3Version = "3.3.0"
val kotlinCompatibleLanguageVersion = "1.4"

val composeVersion = "1.5.3"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ android.useAndroidX=true
android.defaults.buildfeatures.buildconfig=true

# Release information
versionName=7.11.0
versionName=7.10.0

# Override the SDK name on native crashes on Android
sentryAndroidSdkName=sentry.native.android
Expand Down
2 changes: 1 addition & 1 deletion sentry-android-core/api/sentry-android-core.api
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public abstract interface class io/sentry/android/core/IDebugImagesLoader {

public final class io/sentry/android/core/InternalSentrySdk {
public fun <init> ()V
public static fun captureEnvelope ([BZ)Lio/sentry/protocol/SentryId;
public static fun captureEnvelope ([B)Lio/sentry/protocol/SentryId;
public static fun getAppStartMeasurement ()Ljava/util/Map;
public static fun getCurrentScope ()Lio/sentry/IScope;
public static fun serializeScope (Landroid/content/Context;Lio/sentry/android/core/SentryAndroidOptions;Lio/sentry/IScope;)Ljava/util/Map;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
package io.sentry.android.core;

import static io.sentry.SentryLevel.DEBUG;
import static io.sentry.SentryLevel.INFO;
import static io.sentry.SentryLevel.WARNING;

import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
Expand All @@ -23,14 +19,12 @@
import io.sentry.android.core.performance.ActivityLifecycleTimeSpan;
import io.sentry.android.core.performance.AppStartMetrics;
import io.sentry.android.core.performance.TimeSpan;
import io.sentry.cache.EnvelopeCache;
import io.sentry.protocol.App;
import io.sentry.protocol.Device;
import io.sentry.protocol.SentryId;
import io.sentry.protocol.User;
import io.sentry.util.MapObjectWriter;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.HashMap;
Expand Down Expand Up @@ -154,8 +148,7 @@ public static Map<String, Object> serializeScope(
* captured
*/
@Nullable
public static SentryId captureEnvelope(
final @NotNull byte[] envelopeData, final boolean maybeStartNewSession) {
public static SentryId captureEnvelope(final @NotNull byte[] envelopeData) {
final @NotNull IHub hub = HubAdapter.getInstance();
final @NotNull SentryOptions options = hub.getOptions();

Expand Down Expand Up @@ -191,13 +184,6 @@ public static SentryId captureEnvelope(
if (session != null) {
final SentryEnvelopeItem sessionItem = SentryEnvelopeItem.fromSession(serializer, session);
envelopeItems.add(sessionItem);
deleteCurrentSessionFile(
options,
// should be sync if going to crash or already not a main thread
!maybeStartNewSession || !hub.getOptions().getMainThreadChecker().isMainThread());
if (maybeStartNewSession) {
hub.startSession();
}
}

final SentryEnvelope repackagedEnvelope =
Expand Down Expand Up @@ -247,15 +233,15 @@ private static void addTimeSpanToSerializedSpans(TimeSpan span, List<Map<String,
HubAdapter.getInstance()
.getOptions()
.getLogger()
.log(WARNING, "Can not convert not-started TimeSpan to Map for Hybrid SDKs.");
.log(SentryLevel.WARNING, "Can not convert not-started TimeSpan to Map for Hybrid SDKs.");
return;
}

if (span.hasNotStopped()) {
HubAdapter.getInstance()
.getOptions()
.getLogger()
.log(WARNING, "Can not convert not-stopped TimeSpan to Map for Hybrid SDKs.");
.log(SentryLevel.WARNING, "Can not convert not-stopped TimeSpan to Map for Hybrid SDKs.");
return;
}

Expand All @@ -266,46 +252,6 @@ private static void addTimeSpanToSerializedSpans(TimeSpan span, List<Map<String,
spans.add(spanMap);
}

private static void deleteCurrentSessionFile(
final @NotNull SentryOptions options, boolean isSync) {
if (!isSync) {
try {
options
.getExecutorService()
.submit(
() -> {
deleteCurrentSessionFile(options);
});
} catch (Throwable e) {
options
.getLogger()
.log(WARNING, "Submission of deletion of the current session file rejected.", e);
}
} else {
deleteCurrentSessionFile(options);
}
}

private static void deleteCurrentSessionFile(final @NotNull SentryOptions options) {
final String cacheDirPath = options.getCacheDirPath();
if (cacheDirPath == null) {
options.getLogger().log(INFO, "Cache dir is not set, not deleting the current session.");
return;
}

if (!options.isEnableAutoSessionTracking()) {
options
.getLogger()
.log(DEBUG, "Session tracking is disabled, bailing from deleting current session file.");
return;
}

final File sessionFile = EnvelopeCache.getCurrentSessionFile(cacheDirPath);
if (!sessionFile.delete()) {
options.getLogger().log(WARNING, "Failed to delete the current session file.");
}
}

@Nullable
private static Session updateSession(
final @NotNull IHub hub,
Expand All @@ -322,14 +268,11 @@ private static Session updateSession(
if (updated) {
if (session.getStatus() == Session.State.Crashed) {
session.end();
// Session needs to be removed from the scope, otherwise it will be send twice
// standalone and with the crash event
scope.clearSession();
}
sessionRef.set(session);
}
} else {
options.getLogger().log(INFO, "Session is null on updateSession");
options.getLogger().log(SentryLevel.INFO, "Session is null on updateSession");
}
});
return sessionRef.get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import io.sentry.Sentry;
import io.sentry.SentryLevel;
import io.sentry.SentryOptions;
import io.sentry.Session;
import io.sentry.android.core.internal.util.BreadcrumbFactory;
import io.sentry.android.core.performance.AppStartMetrics;
import io.sentry.android.core.performance.TimeSpan;
Expand All @@ -20,9 +19,7 @@
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.atomic.AtomicBoolean;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

/** Sentry initialization class */
public final class SentryAndroid {
Expand Down Expand Up @@ -149,21 +146,8 @@ public static synchronized void init(

final @NotNull IHub hub = Sentry.getCurrentHub();
if (hub.getOptions().isEnableAutoSessionTracking() && ContextUtils.isForegroundImportance()) {
// The LifecycleWatcher of AppLifecycleIntegration may already started a session
// so only start a session if it's not already started
// This e.g. happens on React Native, or e.g. on deferred SDK init
final AtomicBoolean sessionStarted = new AtomicBoolean(false);
hub.configureScope(
scope -> {
final @Nullable Session currentSession = scope.getSession();
if (currentSession != null && currentSession.getStarted() != null) {
sessionStarted.set(true);
}
});
if (!sessionStarted.get()) {
hub.addBreadcrumb(BreadcrumbFactory.forSession("session.start"));
hub.startSession();
}
hub.addBreadcrumb(BreadcrumbFactory.forSession("session.start"));
hub.startSession();
}
} catch (IllegalAccessException e) {
logger.log(SentryLevel.FATAL, "Fatal error during SentryAndroid.init(...)", e);
Expand Down
Loading
Loading