Class ExceptionTelemetry

  • All Implemented Interfaces:
    Telemetry

    public final class ExceptionTelemetry
    extends BaseTelemetry
    Telemetry type used to track exceptions sent to Azure Application Insights.
    • Constructor Detail

      • ExceptionTelemetry

        public ExceptionTelemetry()
      • ExceptionTelemetry

        public ExceptionTelemetry​(java.lang.Throwable throwable,
                                  int stackSize)
        Creates a new instance.
        Parameters:
        stackSize - The max stack size to report.
        throwable - The exception to track.
      • ExceptionTelemetry

        public ExceptionTelemetry​(java.lang.Throwable throwable)
        Creates a new instance.
        Parameters:
        throwable - The exception to track.
    • Method Detail

      • getThrowable

        public java.lang.Throwable getThrowable()
      • getException

        @Nullable
        public java.lang.Exception getException()
      • setException

        public void setException​(java.lang.Throwable throwable)
      • setException

        public void setException​(java.lang.Throwable throwable,
                                 int stackSize)
      • setSeverityLevel

        public void setSeverityLevel​(SeverityLevel severityLevel)
      • getSeverityLevel

        @Nullable
        public SeverityLevel getSeverityLevel()
      • getMetrics

        public java.util.concurrent.ConcurrentMap<java.lang.String,​java.lang.Double> getMetrics()
        Gets a dictionary of custom defined metrics.