mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Updated Bugsnag to version 5.23.0
This commit is contained in:
@@ -561,6 +561,32 @@ public class Configuration implements CallbackAware, MetadataAware, UserAware, F
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the maximum number of threads that will be reported with an event. Once the threshold is
|
||||
* reached, all remaining threads will be omitted.
|
||||
*
|
||||
* By default, up to 200 threads are reported.
|
||||
*/
|
||||
public int getMaxReportedThreads() {
|
||||
return impl.getMaxReportedThreads();
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the maximum number of threads that will be reported with an event. Once the threshold is
|
||||
* reached, all remaining threads will be omitted.
|
||||
*
|
||||
* By default, up to 200 threads are reported.
|
||||
*/
|
||||
public void setMaxReportedThreads(int maxReportedThreads) {
|
||||
if (maxReportedThreads >= 0) {
|
||||
impl.setMaxReportedThreads(maxReportedThreads);
|
||||
} else {
|
||||
getLogger().e("Invalid configuration value detected. "
|
||||
+ "Option maxReportedThreads should be a positive integer."
|
||||
+ "Supplied value is " + maxReportedThreads);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the maximum number of persisted sessions which will be stored. Once the threshold is
|
||||
* reached, the oldest session will be deleted.
|
||||
@@ -720,6 +746,26 @@ public class Configuration implements CallbackAware, MetadataAware, UserAware, F
|
||||
impl.setEnabledBreadcrumbTypes(enabledBreadcrumbTypes);
|
||||
}
|
||||
|
||||
@NonNull
|
||||
public Set<Telemetry> getTelemetry() {
|
||||
return impl.getTelemetry();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set which telemetry will be sent to Bugsnag. By default, all telemetry is enabled.
|
||||
*
|
||||
* The following telemetry can be enabled:
|
||||
*
|
||||
* - internal errors: Errors in the Bugsnag SDK itself.
|
||||
*/
|
||||
public void setTelemetry(@NonNull Set<Telemetry> telemetry) {
|
||||
if (telemetry != null) {
|
||||
impl.setTelemetry(telemetry);
|
||||
} else {
|
||||
logNull("telemetry");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets which package names Bugsnag should consider as a part of the
|
||||
* running application. We mark stacktrace lines as in-project if they
|
||||
|
||||
Reference in New Issue
Block a user