java.lang.Object
io.hypersistence.optimizer.core.event.persistence.EventSignature

public final class EventSignature extends Object
The EventSignature computes a stable key used to group runtime events for aggregation.

The signature is intentionally coarse so that the same logical issue is aggregated together: it is the simple event class name, optionally enriched with the entity class when the event exposes one (e.g. an N+1 query issue on a specific entity). Volatile details such as occurrence counts or identifier lists are deliberately excluded, since including them would defeat the purpose of aggregation.

Since:
2.14.0
Author:
Vlad Mihalcea
  • Method Details

    • of

      public static String of(Event event)
      Compute the signature of the provided Event.
      Parameters:
      event - the Event
      Returns:
      the signature