Tinkex.Types.Telemetry.UnhandledExceptionEvent (Tinkex v0.3.4)

View Source

Unhandled exception telemetry event.

Mirrors Python tinker.types.unhandled_exception_event.UnhandledExceptionEvent. Emitted when an unhandled exception occurs.

Summary

Functions

Parse wire format map to struct.

Create a new UnhandledExceptionEvent.

Convert struct to wire format map.

Types

t()

@type t() :: %Tinkex.Types.Telemetry.UnhandledExceptionEvent{
  error_message: String.t(),
  error_type: String.t(),
  event: :unhandled_exception,
  event_id: String.t(),
  event_session_index: non_neg_integer(),
  severity: Tinkex.Types.Telemetry.Severity.t(),
  timestamp: String.t(),
  traceback: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

Parse wire format map to struct.

new(attrs)

@spec new(keyword()) :: t()

Create a new UnhandledExceptionEvent.

to_map(event)

@spec to_map(t()) :: map()

Convert struct to wire format map.