mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-18 03:01:05 +01:00
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:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user