Class RainbowGumAlertEvent

java.lang.Object
jdk.jfr.Event
io.jstach.rainbowgum.jfr.RainbowGumAlertEvent
Direct Known Subclasses:
RainbowGumAlertEvent.DebugEvent, RainbowGumAlertEvent.ErrorEvent, RainbowGumAlertEvent.InfoEvent, RainbowGumAlertEvent.TraceEvent, RainbowGumAlertEvent.WarnEvent

Base JFR event committed by JfrAlertListener, one concrete subclass per SLF4J / System.Logger.Level, deliberately a separate JFR event type family from RainbowGumLogEvent (same field shape and per-level split, but its own @Names) even though both are committed the same way and carry the same fields: an alert (an appender failing to write, an async publisher's queue overflowing, etc.) is not an application log line, and merging the two under one event name would make it impossible to tell them apart in a recording - e.g. filtering jfr print --events io.jstach.rainbowgum.Error would return both genuine application errors and RainbowGum's own internal alerts with no way to distinguish them.

See RainbowGumLogEvent for the field/annotation rationale - identical here.

  • Field Details

    • message

      public @Nullable String message
      The already-formatted alert message, or null if there was none.
    • logger

      public @Nullable String logger
      The logger name, or null if unavailable.
    • throwable

      public @Nullable String throwable
      The alert's throwable formatted as a stack trace string, or null if none was logged.