Skip to content

Commit d681815

Browse files
committed
Add pluging setting allowing to attach all threads info to captured events
1 parent de833b1 commit d681815

File tree

4 files changed

+7
-0
lines changed

4 files changed

+7
-0
lines changed

plugin-dev/Source/Sentry/Private/Android/AndroidSentrySubsystem.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ void FAndroidSentrySubsystem::InitWithSettings(const USentrySettings* settings,
5656
SettingsJson->SetBoolField(TEXT("autoSessionTracking"), settings->EnableAutoSessionTracking);
5757
SettingsJson->SetNumberField(TEXT("sessionTimeout"), settings->SessionTimeout);
5858
SettingsJson->SetBoolField(TEXT("enableStackTrace"), settings->AttachStacktrace);
59+
SettingsJson->SetBoolField(TEXT("enableThreads"), settings->AttachThreads);
5960
SettingsJson->SetBoolField(TEXT("debug"), settings->Debug);
6061
SettingsJson->SetNumberField(TEXT("sampleRate"), settings->SampleRate);
6162
SettingsJson->SetNumberField(TEXT("maxBreadcrumbs"), settings->MaxBreadcrumbs);

plugin-dev/Source/Sentry/Private/Android/Java/SentryBridgeJava.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public void configure(SentryAndroidOptions options) {
5757
options.setEnableAutoSessionTracking(settingJson.getBoolean("autoSessionTracking"));
5858
options.setSessionTrackingIntervalMillis(settingJson.getLong("sessionTimeout"));
5959
options.setAttachStacktrace(settingJson.getBoolean("enableStackTrace"));
60+
options.setAttachThreads(settingJson.getBoolean("enableThreads"));
6061
options.setDebug(settingJson.getBoolean("debug"));
6162
options.setSampleRate(settingJson.getDouble("sampleRate"));
6263
options.setMaxBreadcrumbs(settingJson.getInt("maxBreadcrumbs"));

plugin-dev/Source/Sentry/Private/SentrySettings.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ USentrySettings::USentrySettings(const FObjectInitializer& ObjectInitializer)
1919
, SampleRate(1.0f)
2020
, EnableAutoLogAttachment(false)
2121
, AttachStacktrace(true)
22+
, AttachThreads(true)
2223
, SendDefaultPii(false)
2324
, AttachScreenshot(false)
2425
, AttachGpuDump(true)

plugin-dev/Source/Sentry/Public/SentrySettings.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,10 @@ class SENTRY_API USentrySettings : public UObject
242242
Meta = (DisplayName = "Attach stack trace to captured events", ToolTip = "Flag indicating whether to attach stack trace automatically to captured events."))
243243
bool AttachStacktrace;
244244

245+
UPROPERTY(Config, EditAnywhere, Category = "General|Attachments",
246+
Meta = (DisplayName = "Attach information about all threads to captured events (for Android only)", ToolTip = "Flag indicating whether to attach information about all threads automatically to captured events, not just the crashing thread."))
247+
bool AttachThreads;
248+
245249
UPROPERTY(Config, EditAnywhere, Category = "General|Attachments",
246250
Meta = (DisplayName = "Attach personally identifiable information", ToolTip = "Flag indicating whether to attach personally identifiable information (PII) to captured events."))
247251
bool SendDefaultPii;

0 commit comments

Comments
 (0)