You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dac9d77
Browse filesBrowse the repository at this point in the historyBrowse files
Remove the deprecated option and use Data Collection defaults across SDK integrations. Document how to configure restrictive collection behavior when migrating to version 9.
FixesGH-6160
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,10 @@
10
10
11
11
### Breaking Changes
12
12
13
+
- Remove the deprecated `sendDefaultPii` option from Java APIs, properties and environment variables, Android manifest metadata, and Spring annotations ([#6160](https://github.com/getsentry/sentry-java/issues/6160))
14
+
- Configure automatically collected data with `dataCollection` instead. `DataCollection.forceDataCollection()` is also removed because the defaults now apply automatically.
15
+
- When no `dataCollection` setting is specified, user information, database query data, file paths, GraphQL documents and variables, and HTTP request and response bodies are enabled. Cookies, URL query parameters, and HTTP headers use their default deny lists.
16
+
- Logback raw message templates and parameters are controlled only by `includeUnencodedMessage` when an encoder is configured.
13
17
- The Spring Boot 3 integrations are tested against Spring Boot 3.4 and newer. Spring Boot 3.2 and 3.3 are no longer supported ([#6656](https://github.com/getsentry/sentry-java/pull/6656))
14
18
- Remove the deprecated `io.sentry.android.core.LoadClass`. Use `io.sentry.util.LoadClass` instead ([#6594](https://github.com/getsentry/sentry-java/pull/6594))
15
19
-`SentryOptions.getIgnoredErrors()`, `getIgnoredTransactions()`, `getIgnoredCheckIns()` and `getIgnoredSpanOrigins()` now return `List<String>` instead of `List<FilterString>`, matching their setters ([#6489](https://github.com/getsentry/sentry-java/pull/6489))
Copy file name to clipboardExpand all lines: MIGRATION.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,36 @@
1
+
# Migrating from 8.x to 9.x
2
+
3
+
## Replace `sendDefaultPii` with Data Collection
4
+
5
+
Version 9 removes `sendDefaultPii` from the Java API, external configuration, Android manifest metadata, and Spring's `@EnableSentry` annotation. Configure each category through `dataCollection` instead.
6
+
7
+
When no Data Collection setting is specified, the SDK now uses these defaults:
8
+
9
+
- User information, database query data, file paths, GraphQL documents and variables, and HTTP request and response bodies are enabled.
10
+
- Cookies, URL query parameters, and HTTP request and response headers are collected with their default deny lists.
11
+
12
+
Explicit settings still take precedence. If you relied on `sendDefaultPii=false` and want to disable these categories, configure them directly:
`DataCollection.forceDataCollection()` is also removed because the documented defaults now apply automatically.
31
+
32
+
For Logback, use `includeUnencodedMessage` to control whether events include the original message template and parameters when an encoder is configured. OpenTelemetry-derived HTTP headers now follow `dataCollection.httpHeaders.request`.
33
+
1
34
# Migrating from `sentry-java` to `sentry-android`
<ID>MaxLineLength:LaunchDetailsQuery.kt$LaunchDetailsQuery.Companion$"query LaunchDetails(${'$'}id: ID!) { launch(id: ${'$'}id) { id site mission { name missionPatch(size: LARGE) } rocket { name type } } }"</ID>
0 commit comments