Spandex.Strategy behaviour (Spandex v3.1.0) View Source

The behaviour for a storage strategy for storing an ongoing trace.

Link to this section Summary

Link to this section Types

Specs

tracer() :: module()

Link to this section Callbacks

Specs

delete_trace(tracer()) :: {:ok, Spandex.Trace.t()} | {:error, term()}

Specs

get_trace(tracer()) :: {:ok, Spandex.Trace.t()} | {:error, term()}

Specs

put_trace(tracer(), Spandex.Trace.t()) ::
  {:ok, Spandex.Trace.t()} | {:error, term()}

Specs

trace_active?(tracer()) :: boolean()