Method with @async annotation, not getting logged in APM for errors for spring application

I have configured the java APM agent through the elastic.apm.service_name config for my springboot application.


When there is any error occurring for my method annotated with @Async the error form this isn't availble at the APM side. The code snippet where this issue occurs is .

 @Async("AsyncConfigPayAgg")
    public void submitPaymentToComplianceAndUpdateNano(PaymentDetails paymentDetails, Customer customer,
            List<RuleResponse> ruleResponseList) {
        try {
            LogUtil.log(LOGGER, "Active threads for comply::" + asyncConfigPayAgg.getActiveCount());
            APIResponse<?> compliResponse = submitTransactionForCompliance(paymentDetails,
                    PaymentDirectionEnum.OUTGOING, customer, ruleResponseList);

You've already asked this at Method with @async annotation, not getting logged in APM for errors for spring application, so let's keep the discussion happening there :slight_smile: