in services/library/src/main/java/com/google/cloud/pso/bq_snapshot_manager/helpers/LoggingHelper.java [163:187]
public void logRetryableExceptions(String trackingId, @Nullable TableSpec tableSpec, Exception ex, String reason) {
Object [] attributes = new Object[]{
kv("retryable_ex_tracking_id", trackingId),
kv("retryable_ex_name", ex.getClass().getName()),
kv("retryable_ex_msg", ExceptionUtils.getStackTrace(ex)),
kv("retryable_ex_code", getExceptionCode(ex)),
kv("retryable_ex_reason", getExceptionReason(ex)),
};
logWithTracker(
ApplicationLog.RETRYABLE_EXCEPTIONS_LOG,
null,
trackingId,
tableSpec,
String.format("Caught a Retryable exception while processing tracker `%s`. %s. Classification Reason: %s.",
trackingId,
generateExceptionSummary(ex),
reason
),
Level.WARN,
attributes
);
ex.printStackTrace();
}