Spandex v1.4.0 API Reference

Modules

The functions here call the corresponding functions on the configured adapter

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

A datadog APM implementation for spandex

Implements worker for sending spans to datadog as GenServer in order to send traces async

In charge of holding the datadog span attributes, and for starting/ending spans. This also handles serialization via to_map/1, and span inheritance via child_of/3

A set of common utils specific (for now) to DataDog APM)

Adds request context to the top span of the trace, setting the resource, method, url, service, type and env

Finishes a trace, setting status and error based on the HTTP status

Starts a trace, skipping ignored routes or methods. Store info in Conn assigns if we actually trace the request

Helper methods for accessing Spandex plug assigns

A module that can be used to build your own tracer