View Source ExInsights.Telemetry.ExceptionTelemetry (ExInsights v0.8.1)

Telemetry about the exception thrown by the application

Link to this section Summary

Link to this section Types

@type inner_exception() :: %{
  typeName: ExInsights.Telemetry.Types.name(),
  message: String.t(),
  hasFullStack: boolean(),
  parsedStack: [inner_stack_entry()]
}
@type inner_stack_entry() :: %{
  level: integer(),
  method: String.t(),
  assembly: String.t(),
  fileName: charlist(),
  line: integer()
}
@type option() ::
  {:stack_trace, Exception.stacktrace()}
  | {:handled_at, String.t()}
  | {:measurements, ExInsights.Telemetry.Types.measurements()}
  | ExInsights.Telemetry.CommonTelemetry.option()
@type t() :: %ExInsights.Telemetry.ExceptionTelemetry{
  common: ExInsights.Telemetry.CommonTelemetry.t(),
  exceptions: [inner_exception()],
  handledAt: String.t(),
  measurements: ExInsights.Telemetry.Types.measurements(),
  severityLevel: ExInsights.Telemetry.Types.severity_level()
}

Link to this section Functions

Link to this function

new(exception, options \\ [])

View Source
@spec new(Exception.t() | String.t(), [option()]) :: t()