Sonda v0.2.0 Sonda.Agent.Default View Source
Link to this section Summary
Link to this section Types
Link to this type
config_opts()
View Sourceconfig_opts() :: [sinks: [Sonda.Sink.t()], clock_now: (() -> NaiveDateTime.t())]
Link to this section Functions
Link to this function
get_memory_sink(server, fun)
View Sourceget_memory_sink(server :: Sonda.Agent.t(), (Sonda.Sink.Proxy.t() -> any())) :: any()
Link to this function
one_record(server, match)
View Sourceone_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 Sourcerecord(server :: Sonda.Agent.t(), signal :: Sonda.Sink.signal()) :: :ok
Link to this function
record(server, signal, data \\ nil)
View Sourcerecord(server :: Sonda.Agent.t(), signal :: Sonda.Sink.signal(), data :: any()) :: :ok
Link to this function
record_signal?(server, signal)
View Sourcerecord_signal?(server :: Sonda.Agent.t(), signal :: Sonda.Sink.signal()) :: boolean()
Link to this function
recorded?(server, match)
View Sourcerecorded?(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) :: boolean()
Link to this function
recorded_once?(server, match)
View Sourcerecorded_once?(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) :: boolean()
Link to this function
records(server)
View Sourcerecords(server :: Sonda.Agent.t()) :: [Sonda.Sink.Memory.record()]
Link to this function
records(server, match)
View Sourcerecords(server :: Sonda.Agent.t(), match :: Sonda.Sink.Memory.matcher()) :: [ Sonda.Sink.Memory.record() ]
Link to this function
start_link(config_opts)
View Sourcestart_link(config_opts :: config_opts()) :: Agent.on_start()
Link to this function
start_link(config_opts, opts)
View Sourcestart_link(config_opts :: config_opts(), opts :: keyword()) :: Agent.on_start()