View Source Defectoscope.Report (Defectoscope v0.1.3)

Defines a report struct

Summary

Functions

Creates a new report using a report builder

Creates a new report with the specified kind, message, and stack trace

Types

@type t() :: %Defectoscope.Report{
  kind: atom(),
  level: atom(),
  message: String.t(),
  meta: map(),
  phoenix_params: map(),
  scope: String.t(),
  stacktrace: [String.t()],
  timestamp: DateTime.t()
}

Functions

@spec new(incident :: %{source: atom(), params: map()}) :: t()

Creates a new report using a report builder

Link to this function

new(kind, reason, stacktrace)

View Source
@spec new(kind :: atom(), reason :: any(), stacktrace :: Exception.stacktrace()) ::
  t()

Creates a new report with the specified kind, message, and stack trace