Skip to content

Commit 39be89f

Browse files
adinauerlbloder
andauthored
Update Java SDK v8 deprecation removals (#11820)
* Update Java SDK v8 deprecation removals * Update docs/platforms/android/configuration/options.mdx Co-authored-by: Lukas Bloder <[email protected]> --------- Co-authored-by: Lukas Bloder <[email protected]>
1 parent ce34ab8 commit 39be89f

File tree

5 files changed

+11
-17
lines changed

5 files changed

+11
-17
lines changed

docs/platforms/android/configuration/options.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,9 +258,9 @@ Default: set to `android.content.Context.getCacheDir()/sentry`.
258258

259259
</ConfigKey>
260260

261-
<ConfigKey name="shutdown-timeout">
261+
<ConfigKey name="shutdown-timeout-millis">
262262

263-
Controls how many seconds to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending events. The default is SDK specific but typically around two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems.
263+
Controls how many seconds to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending events. The default is SDK specific but typically around two seconds. Setting this value too low may cause problems for sending events from the application. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems.
264264

265265
</ConfigKey>
266266

docs/platforms/java/common/configuration/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,18 +265,18 @@ sentry.traces-sample-rate=0.2
265265

266266
### Tracing Origins
267267

268-
To set tracing origins, use the `tracing-origins` option:
268+
To set tracing origins, use the `trace-propagation-targets` option:
269269

270270
```properties {tabTitle:sentry.properties}
271-
tracing-origins=localhost,^(http|https)://api\\..*$
271+
trace-propagation-targets=localhost,^(http|https)://api\\..*$
272272
```
273273

274274
```properties {tabTitle:environment variable}
275-
SENTRY_TRACING_ORIGINS=localhost,^(http|https)://api\\..*$
275+
SENTRY_TRACE_PROPAGATION_TARGETS=localhost,^(http|https)://api\\..*$
276276
```
277277

278278
```properties {tabTitle:system property}
279-
sentry.tracing-origins=localhost,^(http|https)://api\\..*$
279+
sentry.trace-propagation-targets=localhost,^(http|https)://api\\..*$
280280
```
281281

282282
### Debug

docs/platforms/java/common/configuration/options.mdx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ When set, a proxy can be configured that should be used for outbound requests. T
213213

214214
</ConfigKey>
215215

216-
<ConfigKey name="shutdown-timeout">
216+
<ConfigKey name="shutdown-timeout-millis">
217217

218218
Controls how many seconds to wait before shutting down. Sentry SDKs send events from a background queue. This queue is given a certain amount to drain pending events. The default is SDK specific but typically around two seconds. Setting this value too low may cause problems for sending events from command line applications. Setting the value too high will cause the application to block for a long time for users experiencing network connectivity problems.
219219

@@ -239,12 +239,6 @@ A function responsible for determining the percentage chance a given transaction
239239

240240
</ConfigKey>
241241

242-
<ConfigKey name="tracing-origins">
243-
244-
An optional property that configures which downstream services receive the `sentry-trace` header attached to HTTP requests. It contains a list of URLs or regex against which URLs are matched. If not set, the `sentry-trace` header is attached to every request executed from an instrumented client.
245-
246-
</ConfigKey>
247-
248242
<ConfigKey name="trace-propagation-targets">
249243

250244
An optional property that controls which downstream services receive tracing data, in the form of a `sentry-trace` and a `baggage` header attached to any outgoing HTTP requests.

platform-includes/configuration/auto-session-tracking/android.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ If you'd like to opt-out of this feature, you can do it via options.
3030

3131
```xml {filename:AndroidManifest.xml}
3232
<application>
33-
<meta-data android:name="io.sentry.session-tracking.enable" android:value="true" />
33+
<meta-data android:name="io.sentry.auto-session-tracking.enable" android:value="true" />
3434
</application>
3535
```
3636

@@ -40,15 +40,15 @@ Or, if you are manually instrumenting Sentry:
4040
import io.sentry.android.core.SentryAndroid;
4141

4242
SentryAndroid.init(this, options -> {
43-
options.setEnableSessionTracking(true);
43+
options.setEnableAutoSessionTracking(true);
4444
});
4545
```
4646

4747
```kotlin
4848
import io.sentry.android.core.SentryAndroid
4949

5050
SentryAndroid.init(this) { options ->
51-
options.isEnableSessionTracking = true
51+
options.isEnableAutoSessionTracking = true
5252
}
5353
```
5454

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
The Java SDK automatically shuts down on JVM exit and waits `shutdownTimeout` milliseconds before that happens.
1+
The Java SDK automatically shuts down on JVM exit and waits `shutdownTimeoutMillis` milliseconds before that happens.

0 commit comments

Comments
 (0)