View Source Grizzly.Trace.Record (grizzly v8.6.6)

Data structure for a single item in the trace log

Summary

Functions

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

Turn a record into the string format

Types

opt()

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

t()

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

Functions

new(binary, opts \\ [])

@spec 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

to_string(record, format \\ :text)

@spec to_string(t(), Grizzly.Trace.format()) :: String.t()

Turn a record into the string format