Monitor Async calls in Java 8 and Spring MVC

Since the last post announcing Async framework support in DripStat, we have now added support for:

  • Java 8′s CompletableFuture
  • Spring MVC’s Async requests, including support for controller methods that return DeferredResult or ListenableFuture.

This means is you can have a method like this, and it will be fully recognized by Dripstat!

@RequestMapping(value = "/hello", method = RequestMethod.GET)
    public ListenableFuture> hello() 
    {
        return FutureConverter.toListenableFuture(
          CompletableFuture.supplyAsync(
            () -> restTemplate.getForEntity
                        ("https://google.com", String.class)));
    }

Upgrade to Agent 6.1.11 to get the above functionality.

Related:

Show Comments