Spandex v1.0.3 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) View Source
continue_trace(String.t, term, term) ::
  {:ok, term} |
  {:error, term}
Link to this callback current_span_id() View Source
current_span_id() :: term | nil | {:error, term}
Link to this callback current_trace_id() View Source
current_trace_id() :: term | nil | {:error, term}
Link to this callback finish_span() View Source
finish_span() :: :ok | {:error, term}
Link to this callback finish_trace() View Source
finish_trace() :: :ok | {:error, term}
Link to this callback span_error(arg0) View Source
span_error(Exception.t) :: :ok | {:error, term}
Link to this callback start_span(arg0) View Source
start_span(String.t) :: {:ok, term} | {:error, term}
Link to this callback start_trace(arg0) View Source
start_trace(String.t) :: {:ok, term} | {:error, term}
Link to this callback startup() View Source
startup() :: :ok | {:error, term}
Link to this callback update_all_spans(map) View Source
update_all_spans(map) :: :ok | {}
Link to this callback update_span(map) View Source
update_span(map) :: :ok | {:error, term}
Link to this callback update_top_span(map) View Source
update_top_span(map) :: :ok | {:error, term}