public void logFailedDispatcherEntityId()

in services/library/src/main/java/com/google/cloud/pso/bq_pii_classifier/helpers/LoggingHelper.java [150:169]


    public void logFailedDispatcherEntityId(String trackingId, String entityId, Exception ex) {

        Object [] attributes = new Object[]{
                kv("failed_dispatcher_entity_id", entityId),
                kv("failed_dispatcher_ex_name", ex.getClass().getName()),
                kv("failed_dispatcher_ex_msg", ex.getMessage())
        };

        logWithTracker(
                ApplicationLog.FAILED_DISPATCHED_REQUESTS_LOG,
                trackingId,
                String.format("Failed to process entity `%s`.Exception: %s. Msg: %s",
                        entityId,
                        ex.getClass().getName(),
                        ex.getMessage()
                        ),
                Level.ERROR,
                attributes
        );
    }