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

The callbacks required to implement the Spandex.Adapter behaviour.

Link to this section Summary

Link to this section Callbacks

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

distributed_context(t, t)

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

inject_context(headers, t, t)

View Source
@callback inject_context(Spandex.headers(), Spandex.SpanContext.t(), Keyword.t()) ::
  Spandex.headers()
@callback now() :: Spandex.timestamp()
@callback span_id() :: Spandex.id()
@callback trace_id() :: Spandex.id()