Don't send OutOfMemoryError to the telemetry by amarziali · Pull Request #10211 · DataDog/dd-trace-java

Expand Up @@ -42,7 +42,7 @@ private void telemetryLog(LogLevel level, Marker marker, String msgOrgFormat, Th } // Report only messages with Throwable or explicitly marked with SEND_TELEMETRY. // This might be extended to error level without throwable. if (t == null && marker != LogCollector.SEND_TELEMETRY) { if (marker != LogCollector.SEND_TELEMETRY && (t == null || t instanceof OutOfMemoryError)) { return; } LogCollector.get().addLogMessage(level.name(), msgOrgFormat, t); Expand Down