Metrics for events (#1601)

Updates legman to version 2, which allows the usage of the MicrometerPlugin. The plugin will collect metrics for subscriber invocations and the underlying executor.

Furthermore this change will fix the usage of wrong subject context in the asynchronous events.
This commit is contained in:
Sebastian Sdorra
2021-03-24 15:54:29 +01:00
committed by GitHub
parent c5720b36b5
commit 8f2272885b
9 changed files with 184 additions and 58 deletions

View File

@@ -21,13 +21,12 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
package sonia.scm.event;
//~--- non-JDK imports --------------------------------------------------------
import com.github.legman.EventBus;
import com.github.legman.EventBusRegistry;
/**
*
@@ -76,5 +75,5 @@ public class ScmTestEventBus extends ScmEventBus
//~--- fields ---------------------------------------------------------------
/** Field description */
private final EventBus eventBus = EventBusRegistry.getEventBus();
private final EventBus eventBus = new EventBus("testing");
}