Updated Bugsnag to version 5.23.0

This commit is contained in:
M66B
2022-06-23 20:23:15 +02:00
parent dd8bd36712
commit f5604d6ede
35 changed files with 737 additions and 276 deletions

View File

@@ -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