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()
@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()}
@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()