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
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_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
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}