Class OriginalStackTracePlugin

java.lang.Object
org.zalando.riptide.OriginalStackTracePlugin
All Implemented Interfaces:
Plugin

@API(status=STABLE) public final class OriginalStackTracePlugin extends Object implements Plugin
Preserves the original stack traces of failed requests. Requests in Riptide are executed asynchronously by default. That has the unfortunate side-effect that stack traces from exceptions that happen when processing the response will not contain everything that is needed to trace back to the caller.

This plugin will modify the stack trace of any thrown exception and appending the stack trace elements of the original stack trace

  • Field Details

  • Constructor Details

    • OriginalStackTracePlugin

      public OriginalStackTracePlugin()
  • Method Details

    • aroundAsync

      public RequestExecution aroundAsync(RequestExecution execution)
      Description copied from interface: Plugin
      The given execution will be executed in a different thread and therefore be properly asynchronous. This phase is useful for plugins which either need to perform some task in the calling thread or (more commonly) may trigger other asynchronous operations concurrently to the request.
      Specified by:
      aroundAsync in interface Plugin
      Parameters:
      execution - the execution that includes the thread switch as well as the dispatch, serialization and network phases
      Returns:
      the new, potentially modified execution