in services/library/src/main/java/com/google/cloud/pso/bq_snapshot_manager/helpers/LoggingHelper.java [111:135]
public void logFailedDispatcherEntityId(String trackingId, @Nullable TableSpec tableSpec, String entityId,
String exceptionMessage,
String exceptionClassName
) {
Object [] attributes = new Object[]{
kv("failed_dispatcher_entity_id", entityId),
kv("failed_dispatcher_ex_name", exceptionClassName),
kv("failed_dispatcher_ex_msg", exceptionMessage)
};
logWithTracker(
ApplicationLog.FAILED_DISPATCHED_REQUESTS_LOG,
null,
trackingId,
tableSpec,
String.format("Failed to process entity `%s`.Exception: %s. Msg: %s",
entityId,
exceptionClassName,
exceptionMessage
),
Level.ERROR,
attributes
);
}