Spandex v1.0.3 Spandex.Adapters.Datadog View Source
A datadog APM implementation for spandex.
Link to this section Summary
Functions
Continues a trace given a name, a trace_id and a span_id
Gets the current span id
Gets the current trace id
Completes the current span, moving it from the top of the span stack to the list of completed spans
Sends the trace to datadog and clears out the current trace data
Attaches error data to the current span, and marks it as an error
Starts a span and adds it to the span stack
Starts a trace context in process local storage
Does any required setup on application start
Updates all spans
Updates a span according to the provided context.
See Spandex.Datadog.Span.update/2
for more information
Updates the top level span with information. Useful for setting overal trace context
Link to this section Functions
continue_trace(String.t, term, term) :: {:ok, term} | {:error, term}
Continues a trace given a name, a trace_id and a span_id
current_span_id() :: term | nil | {:error, term}
Gets the current span id
current_trace_id() :: term | nil | {:error, term}
Gets the current trace id
Completes the current span, moving it from the top of the span stack to the list of completed spans.
finish_trace() :: :ok | {:error, :no_trace_context}
Sends the trace to datadog and clears out the current trace data
span_error(Exception.t) :: :ok | {:error, term}
Attaches error data to the current span, and marks it as an error.
start_span(String.t) :: {:ok, term} | {:error, term}
Starts a span and adds it to the span stack.
start_trace(String.t) :: {:ok, term} | {:error, term}
Starts a trace context in process local storage.
Does any required setup on application start.
Updates all spans
Updates a span according to the provided context.
See Spandex.Datadog.Span.update/2
for more information.
update_top_span(map) :: :ok | {:error, term}
Updates the top level span with information. Useful for setting overal trace context