Spandex v1.4.0 Spandex.Adapters.Adapter behaviour View Source

Describes the callback for a tracing adapter. Can be used to provide different implementations of reporting/aggregating spans while still using the spandex internal implementation.

Link to this section Summary

Link to this section Callbacks

Link to this callback continue_trace(arg0, term, term, arg3) View Source
continue_trace(String.t, term, term, Keyword.t) ::
  {:ok, term} |
  {:error, term}
Link to this callback continue_trace_from_span(arg0, map, arg2) View Source
continue_trace_from_span(String.t, map, Keyword.t) ::
  {:ok, term} |
  {:error, term}
Link to this callback current_span(arg0) View Source
current_span(Keyword.t) :: term | nil
Link to this callback current_span_id(arg0) View Source
current_span_id(Keyword.t) :: term | nil | {:error, term}
Link to this callback current_trace_id(arg0) View Source
current_trace_id(Keyword.t) :: term | nil | {:error, term}
Link to this callback distributed_context(arg0, arg1) View Source
distributed_context(Plug.Conn.t, Keyword.t) ::
  {:ok, term} |
  {:error, term}
Link to this callback finish_span(arg0) View Source
finish_span(Keyword.t) :: :ok | {:error, term}
Link to this callback finish_trace(arg0) View Source
finish_trace(Keyword.t) :: :ok | {:error, term}
Link to this callback span_error(arg0, arg1) View Source
span_error(Exception.t, Keyword.t) :: :ok | {:error, term}
Link to this callback start_span(arg0, arg1) View Source
start_span(String.t, Keyword.t) ::
  {:ok, term} |
  {:error, term}
Link to this callback start_trace(arg0, arg1) View Source
start_trace(String.t, Keyword.t) ::
  {:ok, term} |
  {:error, term}
Link to this callback update_all_spans(map, arg1) View Source
update_all_spans(map, Keyword.t) :: :ok | {}
Link to this callback update_span(map, arg1) View Source
update_span(map, Keyword.t) :: :ok | {:error, term}
Link to this callback update_top_span(map, arg1) View Source
update_top_span(map, Keyword.t) :: :ok | {:error, term}