From 7420e3358e008ff29c6f663803c1519e1e536452 Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Thu, 14 Nov 2024 14:40:42 +0100 Subject: [PATCH 1/2] Update Java SDK v8 deprecation removals --- docs/platforms/android/configuration/options.mdx | 2 +- docs/platforms/java/common/configuration/index.mdx | 8 ++++---- docs/platforms/java/common/configuration/options.mdx | 8 +------- .../configuration/auto-session-tracking/android.mdx | 6 +++--- platform-includes/configuration/drain-example/java.mdx | 2 +- 5 files changed, 10 insertions(+), 16 deletions(-) diff --git a/docs/platforms/android/configuration/options.mdx b/docs/platforms/android/configuration/options.mdx index 69ece2608b43d6..b7490cb4f31a65 100644 --- a/docs/platforms/android/configuration/options.mdx +++ b/docs/platforms/android/configuration/options.mdx @@ -258,7 +258,7 @@ Default: set to `android.content.Context.getCacheDir()/sentry`. - + 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. diff --git a/docs/platforms/java/common/configuration/index.mdx b/docs/platforms/java/common/configuration/index.mdx index 5c3f2d52d55ae5..abf3ad1ade6606 100644 --- a/docs/platforms/java/common/configuration/index.mdx +++ b/docs/platforms/java/common/configuration/index.mdx @@ -265,18 +265,18 @@ sentry.traces-sample-rate=0.2 ### Tracing Origins -To set tracing origins, use the `tracing-origins` option: +To set tracing origins, use the `trace-propagation-targets` option: ```properties {tabTitle:sentry.properties} -tracing-origins=localhost,^(http|https)://api\\..*$ +trace-propagation-targets=localhost,^(http|https)://api\\..*$ ``` ```properties {tabTitle:environment variable} -SENTRY_TRACING_ORIGINS=localhost,^(http|https)://api\\..*$ +SENTRY_TRACE_PROPAGATION_TARGETS=localhost,^(http|https)://api\\..*$ ``` ```properties {tabTitle:system property} -sentry.tracing-origins=localhost,^(http|https)://api\\..*$ +sentry.trace-propagation-targets=localhost,^(http|https)://api\\..*$ ``` ### Debug diff --git a/docs/platforms/java/common/configuration/options.mdx b/docs/platforms/java/common/configuration/options.mdx index ed6628cfa6babf..6f594e983a806e 100644 --- a/docs/platforms/java/common/configuration/options.mdx +++ b/docs/platforms/java/common/configuration/options.mdx @@ -213,7 +213,7 @@ When set, a proxy can be configured that should be used for outbound requests. T - + 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. @@ -239,12 +239,6 @@ A function responsible for determining the percentage chance a given transaction - - -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. - - - 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. diff --git a/platform-includes/configuration/auto-session-tracking/android.mdx b/platform-includes/configuration/auto-session-tracking/android.mdx index 709a98f4f8eb03..7cc9965dea52a7 100644 --- a/platform-includes/configuration/auto-session-tracking/android.mdx +++ b/platform-includes/configuration/auto-session-tracking/android.mdx @@ -30,7 +30,7 @@ If you'd like to opt-out of this feature, you can do it via options. ```xml {filename:AndroidManifest.xml} - + ``` @@ -40,7 +40,7 @@ Or, if you are manually instrumenting Sentry: import io.sentry.android.core.SentryAndroid; SentryAndroid.init(this, options -> { - options.setEnableSessionTracking(true); + options.setEnableAutoSessionTracking(true); }); ``` @@ -48,7 +48,7 @@ SentryAndroid.init(this, options -> { import io.sentry.android.core.SentryAndroid SentryAndroid.init(this) { options -> - options.isEnableSessionTracking = true + options.isEnableAutoSessionTracking = true } ``` diff --git a/platform-includes/configuration/drain-example/java.mdx b/platform-includes/configuration/drain-example/java.mdx index 623b29c219b476..e7752fa8d60dcf 100644 --- a/platform-includes/configuration/drain-example/java.mdx +++ b/platform-includes/configuration/drain-example/java.mdx @@ -1 +1 @@ -The Java SDK automatically shuts down on JVM exit and waits `shutdownTimeout` milliseconds before that happens. +The Java SDK automatically shuts down on JVM exit and waits `shutdownTimeoutMillis` milliseconds before that happens. From 7842a53bb01698b1d97fb838f899035446b454bd Mon Sep 17 00:00:00 2001 From: Alexander Dinauer Date: Tue, 19 Nov 2024 11:31:21 +0100 Subject: [PATCH 2/2] Update docs/platforms/android/configuration/options.mdx Co-authored-by: Lukas Bloder --- docs/platforms/android/configuration/options.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/platforms/android/configuration/options.mdx b/docs/platforms/android/configuration/options.mdx index b7490cb4f31a65..b9f537f9a3dcb6 100644 --- a/docs/platforms/android/configuration/options.mdx +++ b/docs/platforms/android/configuration/options.mdx @@ -260,7 +260,7 @@ Default: set to `android.content.Context.getCacheDir()/sentry`. -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. +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.