GH-1068 - Switch to simple event type name for automatically created counters.

This commit is contained in:
Oliver Drotbohm
2025-02-23 09:48:05 +01:00
parent 78991f4723
commit 20f07b7936
2 changed files with 2 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ public class CrossModuleEventCounterFactory implements ModulithEventMetrics {
private static final BiConsumer<Object, Builder> NO_OP = (event, builder) -> {};
private static final Function<Object, Builder> DEFAULT_FACTORY = event -> Counter
.builder(event.getClass().getName());
.builder(event.getClass().getSimpleName());
public static final ModulithMetricsCustomizer DEFAULT = new ModulithMetricsCustomizer(Object.class, NO_OP);