Sonda v0.1.0 Sonda.Agent.Default View Source

Link to this section Summary

Link to this section Types

Link to this type

config_opts()

View Source
config_opts() :: [sinks: [Sonda.Sink.t()], clock_now: (() -> NaiveDateTime.t())]

Link to this section Functions

Link to this function

configure(opts \\ [])

View Source
configure(opts :: config_opts()) :: t()
Link to this function

get_memory_sink(server, fun)

View Source
get_memory_sink(server :: Sonda.Agent.t(), (Sonda.Sink.Multi.t() -> any())) ::
  any()
Link to this function

one_record(server, match)

View Source
one_record(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) ::
  {:ok, Sonda.Sink.Memory.record()} | {:error, :none} | {:error, :multiple}
Link to this function

record(server, signal)

View Source
record(server :: Sonda.Agent.t(), signal :: Sonda.Sink.signal()) :: :ok
Link to this function

record(server, signal, data \\ nil)

View Source
record(server :: Sonda.Agent.t(), signal :: Sonda.Sink.signal(), data :: any()) ::
  :ok
Link to this function

record_signal?(server, signal)

View Source
record_signal?(server :: Sonda.Agent.t(), signal :: Sonda.Sink.signal()) ::
  boolean()
Link to this function

recorded?(server, match)

View Source
recorded?(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) ::
  boolean()
Link to this function

recorded_once?(server, match)

View Source
recorded_once?(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) ::
  boolean()
Link to this function

records(server, match)

View Source
records(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) :: [
  Sonda.Sink.Memory.record()
]
Link to this function

start_link(config_opts)

View Source
start_link(config_opts :: config_opts()) :: Agent.on_start()
Link to this function

start_link(config_opts, opts)

View Source
start_link(config_opts :: config_opts(), opts :: keyword()) :: Agent.on_start()