View Source Ash.Tracer behaviour (ash v2.9.11)
A behaviour for implementing tracing for an Ash application.
Link to this section Summary
Callbacks
Set metadata for the current span.
Link to this section Types
@type span_type() :: :action | :changeset | :query | :flow | :request_step | :change | :validation | :preparation | :custom_flow_step | :custom | {:custom, atom()}
Link to this section Callbacks
@callback get_span_context() :: term()
@callback set_error(Exception.t()) :: :ok
Set metadata for the current span.
This may be called multiple times per span, and should ideally merge with previous metadata.
@callback set_span_context(term()) :: :ok
@callback stop_span() :: :ok