Crosswake.Shell.DiagnosticExport.Envelope (crosswake v0.1.2)

View Source

Typed, versioned diagnostic envelope with layer attribution (D-06).

All 7 fields are @enforce_keys. The optional native_diagnostic field holds a %NativeDiagnostic{} for :native-layer envelopes; nil otherwise.

Summary

Types

kind()

@type kind() :: :crash | :termination | :hang | :cpu | :bridge_fault | :web_fault

layer()

@type layer() :: :native | :web | :bridge

platform()

@type platform() :: :ios | :android | :web

t()

@type t() :: %Crosswake.Shell.DiagnosticExport.Envelope{
  correlation_id: String.t(),
  kind: kind(),
  layer: layer(),
  native_diagnostic:
    Crosswake.Shell.DiagnosticExport.NativeDiagnostic.t() | nil,
  native_runtime_version: String.t(),
  observed_at: String.t(),
  platform: platform(),
  schema_version: String.t()
}