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

The callbacks required to implement the Spandex.Adapter behaviour.

Link to this section Summary

Link to this section Callbacks

Specs

default_sender() :: module()
Link to this callback

distributed_context(arg1, arg2)

View Source

Specs

distributed_context(Plug.Conn.t(), Keyword.t()) ::
  {:ok, Spandex.SpanContext.t()} | {:error, atom()}
distributed_context(Spandex.headers(), Keyword.t()) ::
  {:ok, Spandex.SpanContext.t()} | {:error, atom()}
Link to this callback

inject_context(arg1, arg2, arg3)

View Source

Specs

Specs

now() :: Spandex.timestamp()

Specs

span_id() :: Spandex.id()

Specs

trace_id() :: Spandex.id()