Class ErrorCapture

  • All Implemented Interfaces:
    Recyclable

    public class ErrorCapture
    extends java.lang.Object
    implements Recyclable
    Data captured by an agent representing an event occurring in a monitored service
    • Method Detail

      • getContext

        public TransactionContext getContext()
        Context

        Any arbitrary contextual information regarding the event, captured by the agent, optionally provided by the user

      • getException

        @Nullable
        public java.lang.Throwable getException()
        Information about the originally thrown error.
      • getTimestamp

        public long getTimestamp()
        Recorded time of the error, UTC based and formatted as YYYY-MM-DDTHH:mm:ss.sssZ (Required)
      • withTimestamp

        public ErrorCapture withTimestamp​(long epochMs)
      • resetState

        public void resetState()
        Description copied from interface: Recyclable
        resets pooled object state so it can be reused
        Specified by:
        resetState in interface Recyclable
      • recycle

        public void recycle()
      • setException

        public void setException​(java.lang.Throwable e)
      • getCulprit

        public java.lang.StringBuilder getCulprit()
      • setTransactionSampled

        public void setTransactionSampled​(boolean transactionSampled)
      • setTransactionType

        public void setTransactionType​(@Nullable
                                       java.lang.String type)
      • end

        public void end()