From ba4a49461cf2a9a194ad6b1aa30be5f86a002008 Mon Sep 17 00:00:00 2001 From: Markus Hintersteiner Date: Wed, 15 Oct 2025 13:58:24 +0200 Subject: [PATCH 1/3] Add collectAdditionalContext to Android options --- docs/platforms/android/configuration/options.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/platforms/android/configuration/options.mdx b/docs/platforms/android/configuration/options.mdx index 29e198125a87bc..dbe9e660f6e26c 100644 --- a/docs/platforms/android/configuration/options.mdx +++ b/docs/platforms/android/configuration/options.mdx @@ -92,6 +92,15 @@ Note that enabling this option may increase the payload size of events sent to S + + +Defauls to `true`. Controls whether the SDK collects additional device context (such as battery level, memory usage, storage state, and connectivity) to enrich events. Disabling this can reduce file I/O and help avoid Android StrictMode violations or ANR triggers on some devices at the cost of losing that context on events. + +AndroidManifest.xml key: `io.sentry.additional-context`. +Programmatic API: `SentryAndroidOptions.setCollectAdditionalContext(true|false)`. + + + If this flag is enabled, certain personally identifiable information (PII) is added by active integrations. By default, no such data is sent. From e29f33a9a294833a826458c0e036e68faa0d0250 Mon Sep 17 00:00:00 2001 From: Markus Hintersteiner Date: Wed, 15 Oct 2025 14:30:39 +0200 Subject: [PATCH 2/3] Update docs/platforms/android/configuration/options.mdx Co-authored-by: JoshuaMoelans <60878493+JoshuaMoelans@users.noreply.github.com> --- 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 dbe9e660f6e26c..763ebf123c86c1 100644 --- a/docs/platforms/android/configuration/options.mdx +++ b/docs/platforms/android/configuration/options.mdx @@ -92,7 +92,7 @@ Note that enabling this option may increase the payload size of events sent to S - + Defauls to `true`. Controls whether the SDK collects additional device context (such as battery level, memory usage, storage state, and connectivity) to enrich events. Disabling this can reduce file I/O and help avoid Android StrictMode violations or ANR triggers on some devices at the cost of losing that context on events. From ca3128eff226bab36a197a697412bc4c08623464 Mon Sep 17 00:00:00 2001 From: Markus Hintersteiner Date: Wed, 15 Oct 2025 14:33:27 +0200 Subject: [PATCH 3/3] Rework wording. --- docs/platforms/android/configuration/options.mdx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docs/platforms/android/configuration/options.mdx b/docs/platforms/android/configuration/options.mdx index 763ebf123c86c1..ec2176dad7c471 100644 --- a/docs/platforms/android/configuration/options.mdx +++ b/docs/platforms/android/configuration/options.mdx @@ -94,10 +94,9 @@ Note that enabling this option may increase the payload size of events sent to S -Defauls to `true`. Controls whether the SDK collects additional device context (such as battery level, memory usage, storage state, and connectivity) to enrich events. Disabling this can reduce file I/O and help avoid Android StrictMode violations or ANR triggers on some devices at the cost of losing that context on events. +Controls whether the SDK collects additional device context (such as battery level, memory usage, storage state, and connectivity) to enrich events. Disabling this can reduce file I/O and help avoid Android StrictMode violations or ANR triggers on some devices at the cost of losing that context on events. -AndroidManifest.xml key: `io.sentry.additional-context`. -Programmatic API: `SentryAndroidOptions.setCollectAdditionalContext(true|false)`. +AndroidManifest.xml key: `io.sentry.additional-context`.