Skip to content

Commit 1821d66

Browse files
committed
Merge branch 'main' into feat/7.0.0
2 parents cd268a3 + 540b466 commit 1821d66

File tree

191 files changed

+5351
-388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

191 files changed

+5351
-388
lines changed

.craft.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ targets:
2323
maven:io.sentry:sentry:
2424
maven:io.sentry:sentry-spring:
2525
maven:io.sentry:sentry-spring-jakarta:
26+
maven:io.sentry:sentry-spring-boot:
27+
maven:io.sentry:sentry-spring-boot-jakarta:
2628
maven:io.sentry:sentry-spring-boot-starter:
2729
maven:io.sentry:sentry-spring-boot-starter-jakarta:
2830
maven:io.sentry:sentry-servlet:

.github/ISSUE_TEMPLATE/bug_report_java.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ body:
1818
- sentry-opentelemetry-core
1919
- sentry-servlet
2020
- sentry-servlet-jakarta
21+
- sentry-spring-boot
22+
- sentry-spring-boot-jakarta
2123
- sentry-spring-boot-starter
2224
- sentry-spring-boot-starter-jakarta
2325
- sentry-spring

.github/workflows/agp-matrix.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
uses: actions/checkout@v3
3636

3737
- name: Setup Gradle
38-
uses: gradle/gradle-build-action@915a66c096a03101667f9df2e56c9efef558b165 # pin@v2
38+
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # pin@v2
3939

4040
- name: Setup Java Version
4141
uses: actions/setup-java@v3

.github/workflows/enforce-license-compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Setup Gradle
14-
uses: gradle/gradle-build-action@915a66c096a03101667f9df2e56c9efef558b165 # pin@v2
14+
uses: gradle/gradle-build-action@a4cf152f482c7ca97ef56ead29bf08bcd953284c # pin@v2
1515

1616
- name: Set up Java
1717
uses: actions/setup-java@v3

.github/workflows/integration-tests-benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
run: make stop
4242

4343
- name: Run All Tests in SauceLab
44-
uses: saucelabs/saucectl-run-action@f401339df4c4b84945783f16b45fd545ac52a2eb # pin@v3
44+
uses: saucelabs/saucectl-run-action@1c751bae46d3bf910cd10140e5a4e8259acd9fac # pin@v3
4545
if: github.event_name != 'pull_request' && env.SAUCE_USERNAME != null
4646
env:
4747
GITHUB_TOKEN: ${{ github.token }}
@@ -51,7 +51,7 @@ jobs:
5151
config-file: .sauce/sentry-uitest-android-benchmark.yml
5252

5353
- name: Run one test in SauceLab
54-
uses: saucelabs/saucectl-run-action@f401339df4c4b84945783f16b45fd545ac52a2eb # pin@v3
54+
uses: saucelabs/saucectl-run-action@1c751bae46d3bf910cd10140e5a4e8259acd9fac # pin@v3
5555
if: github.event_name == 'pull_request' && env.SAUCE_USERNAME != null
5656
env:
5757
GITHUB_TOKEN: ${{ github.token }}

.github/workflows/integration-tests-ui.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
run: make stop
4545

4646
- name: Run Tests in SauceLab
47-
uses: saucelabs/saucectl-run-action@f401339df4c4b84945783f16b45fd545ac52a2eb # pin@v3
47+
uses: saucelabs/saucectl-run-action@1c751bae46d3bf910cd10140e5a4e8259acd9fac # pin@v3
4848
env:
4949
GITHUB_TOKEN: ${{ github.token }}
5050
with:

.sauce/sentry-uitest-android-ui.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,28 +23,32 @@ suites:
2323
clearPackageData: true
2424
useTestOrchestrator: true
2525
devices:
26-
- id: Google_Pixel_5_13_real_us # Google Pixel 5 - api 33 (13)
26+
- name: ".*"
27+
platformVersion: "13"
2728

2829
- name: "Android 12 Ui test (api 31)"
2930
testOptions:
3031
clearPackageData: true
3132
useTestOrchestrator: true
3233
devices:
33-
- id: Samsung_Galaxy_S22_Ultra_5G_real_us # Samsung Galaxy S22 Ultra 5G - api 31 (12)
34+
- name: ".*"
35+
platformVersion: "12"
3436

3537
- name: "Android 11 Ui test (api 30)"
3638
testOptions:
3739
clearPackageData: true
3840
useTestOrchestrator: true
3941
devices:
40-
- id: Samsung_Galaxy_S10_Plus_11_real_us # Samsung Galaxy S10+ - api 30 (11)
42+
- name: ".*"
43+
platformVersion: "11"
4144

4245
- name: "Android 10 Ui test (api 29)"
4346
testOptions:
4447
clearPackageData: true
4548
useTestOrchestrator: true
4649
devices:
47-
- id: OnePlus_7T_real_us # OnePlus 7T - api 29 (10)
50+
- name: ".*"
51+
platformVersion: "10"
4852

4953
# Controls what artifacts to fetch when the suite on Sauce Cloud has finished.
5054
artifacts:

CHANGELOG.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,36 @@
11
# Changelog
22

3-
## Unreleased
3+
## 6.29.0
4+
5+
### Features
6+
7+
- Send `db.system` and `db.name` in span data ([#2894](https://github.com/getsentry/sentry-java/pull/2894))
8+
- Send `http.request.method` in span data ([#2896](https://github.com/getsentry/sentry-java/pull/2896))
9+
- Add `enablePrettySerializationOutput` option for opting out of pretty print ([#2871](https://github.com/getsentry/sentry-java/pull/2871))
10+
11+
## 6.28.0
12+
13+
### Features
14+
15+
- Add HTTP response code to Spring WebFlux transactions ([#2870](https://github.com/getsentry/sentry-java/pull/2870))
16+
- Add `sampled` to Dynamic Sampling Context ([#2869](https://github.com/getsentry/sentry-java/pull/2869))
17+
- Improve server side GraphQL support for spring-graphql and Nextflix DGS ([#2856](https://github.com/getsentry/sentry-java/pull/2856))
18+
- If you have already been using `SentryDataFetcherExceptionHandler` that still works but has been deprecated. Please use `SentryGenericDataFetcherExceptionHandler` combined with `SentryInstrumentation` instead for better error reporting.
19+
- More exceptions and errors caught and reported to Sentry by also looking at the `ExecutionResult` (more specifically its `errors`)
20+
- You may want to filter out certain errors, please see [docs on filtering](https://docs.sentry.io/platforms/java/configuration/filtering/)
21+
- More details for Sentry events: query, variables and response (where possible)
22+
- Breadcrumbs for operation (query, mutation, subscription), data fetchers and data loaders (Spring only)
23+
- Better hub propagation by using `GraphQLContext`
24+
- Add autoconfigure modules for Spring Boot called `sentry-spring-boot` and `sentry-spring-boot-jakarta` ([#2880](https://github.com/getsentry/sentry-java/pull/2880))
25+
- The autoconfigure modules `sentry-spring-boot` and `sentry-spring-boot-jakarta` have a `compileOnly` dependency on `spring-boot-starter` which is needed for our auto installation in [sentry-android-gradle-plugin](https://github.com/getsentry/sentry-android-gradle-plugin)
26+
- The starter modules `sentry-spring-boot-starter` and `sentry-spring-boot-starter-jakarta` now bring `spring-boot-starter` as a dependency
27+
- You can now disable Sentry by setting the `enabled` option to `false` ([#2840](https://github.com/getsentry/sentry-java/pull/2840))
28+
29+
### Fixes
30+
31+
- Propagate OkHttp status to parent spans ([#2872](https://github.com/getsentry/sentry-java/pull/2872))
32+
33+
## 6.27.0
434

535
### Features
636

Makefile

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
.PHONY: all clean compile javadocs dryRelease update stop checkFormat format api assembleBenchmarkTestRelease assembleUiTestRelease
1+
.PHONY: all clean compile javadocs dryRelease update stop checkFormat format api assembleBenchmarkTestRelease assembleUiTestRelease createCoverageReports
22

3-
all: stop clean javadocs compile
3+
all: stop clean javadocs compile createCoverageReports
44
assembleBenchmarks: stop clean assembleBenchmarkTestRelease
55
assembleUiTests: stop clean assembleUiTestRelease
66

@@ -50,3 +50,10 @@ assembleBenchmarkTestRelease:
5050
assembleUiTestRelease:
5151
./gradlew :sentry-android-integration-tests:sentry-uitest-android:assembleRelease
5252
./gradlew :sentry-android-integration-tests:sentry-uitest-android:assembleAndroidTest -DtestBuildType=release
53+
54+
# Create coverage reports
55+
# - Jacoco for Java & Android modules
56+
# - Kover for KMP modules e.g sentry-compose
57+
createCoverageReports:
58+
./gradlew jacocoTestReport
59+
./gradlew koverXmlReportRelease

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ Sentry SDK for Java and Android
3838
| sentry-kotlin-extensions | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-kotlin-extensions/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-kotlin-extensions) | 14 |
3939
| sentry-servlet | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-servlet/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-servlet) | |
4040
| sentry-servlet-jakarta | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-servlet-jakarta/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-servlet-jakarta) | |
41+
| sentry-spring-boot | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot) |
42+
| sentry-spring-boot-jakarta | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot-jakarta/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot-jakarta) |
4143
| sentry-spring-boot-starter | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot-starter/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot-starter) |
4244
| sentry-spring-boot-starter-jakarta | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot-starter-jakarta/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring-boot-starter-jakarta) |
4345
| sentry-spring | [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.sentry/sentry-spring) |

0 commit comments

Comments
 (0)