Grizzly.Trace.Record (grizzly v0.22.3) View Source

Data structure for a single item in the trace log

Link to this section Summary

Functions

Make a new Grizzly.Record.t() from a binary string

Turn a record into the string format

Link to this section Types

Specs

opt() ::
  {:src, Grizzly.Trace.src()}
  | {:dest, Grizzly.Trace.dest()}
  | {:timestamp, Time.t()}

Specs

t() :: %Grizzly.Trace.Record{
  binary: binary(),
  dest: Grizzly.Trace.src() | nil,
  src: Grizzly.Trace.src() | nil,
  timestamp: Time.t()
}

Link to this section Functions

Specs

new(binary(), [opt()]) :: t()

Make a new Grizzly.Record.t() from a binary string

Options:

  • :src - the src as a string
  • :dest - the dest as a string

Specs

to_string(t()) :: String.t()

Turn a record into the string format