Skip to content

Commit 2f138af

Browse files
committed
Don't send crash-ping to error tracking if not enabled
1 parent 015be6d commit 2f138af

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dd-java-agent/agent-crashtracking/src/main/java/datadog/crashtracking/CrashUploader.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public CrashUploader(@Nonnull final ConfigManager.StoredConfig storedConfig) {
180180

181181
public void notifyCrashStarted(String error) {
182182
sendPingToTelemetry(error);
183-
sendPingToErrorTracking(error);
183+
if (storedConfig.sendToErrorTracking) {
184+
sendPingToErrorTracking(error);
185+
}
184186
}
185187

186188
// @VisibleForTesting

0 commit comments

Comments
 (0)