Class ExceptionTelemetry
java.lang.Object
com.microsoft.applicationinsights.telemetry.BaseTelemetry
com.microsoft.applicationinsights.telemetry.ExceptionTelemetry
- All Implemented Interfaces:
Telemetry
Telemetry type used to track exceptions sent to Azure Application Insights.
-
Constructor Summary
ConstructorDescriptionExceptionTelemetry
(Throwable throwable) Creates a new instance.ExceptionTelemetry
(Throwable throwable, int stackSize) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionprotected ExceptionData
getData()
Gets a dictionary of custom defined metrics.void
setException
(Throwable throwable) void
setException
(Throwable throwable, int stackSize) void
setSeverityLevel
(SeverityLevel severityLevel) Methods inherited from class com.microsoft.applicationinsights.telemetry.BaseTelemetry
getContext, getProperties, getTimestamp, initialize, setTimestamp
-
Constructor Details
-
ExceptionTelemetry
public ExceptionTelemetry() -
ExceptionTelemetry
Creates a new instance.- Parameters:
stackSize
- The max stack size to report.throwable
- The exception to track.
-
ExceptionTelemetry
Creates a new instance.- Parameters:
throwable
- The exception to track.
-
-
Method Details
-
getThrowable
-
getException
-
setException
-
setException
-
setSeverityLevel
-
getSeverityLevel
-
getMetrics
Gets a dictionary of custom defined metrics. -
getData
- Specified by:
getData
in classBaseTelemetry
-