Spandex v1.0.0-rc.4 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

Returns the current timestamp in nanoseconds

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/3 for more information

Updates the top level span with information. Useful for setting overal trace context

Link to this section Functions

Link to this function continue_trace(name, trace_id, span_id) View Source

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

Returns the current timestamp in nanoseconds

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.

Link to this function update_all_spans(context) View Source

Updates all spans

Updates a span according to the provided context. See Spandex.Datadog.Span.update/3 for more information.

Link to this function update_top_span(context) View Source

Updates the top level span with information. Useful for setting overal trace context