Jidoka.Trace.Sink.InMemory (Jidoka v0.9.0)

Copy Markdown View Source

In-process trace sink for tests, examples, and local inspection.

This sink is intentionally small and process-local. Durable production sinks can implement Jidoka.Trace.Sink directly.

Summary

Functions

Removes all entries from the sink.

Returns all entries recorded by the sink.

Starts a process-local trace sink.

Functions

clear(pid)

@spec clear(pid()) :: :ok

Removes all entries from the sink.

list(pid)

@spec list(pid()) :: [map()]

Returns all entries recorded by the sink.

start_link(opts \\ [])

@spec start_link(keyword()) :: Agent.on_start()

Starts a process-local trace sink.