spandex_datadog v0.3.0 SpandexDatadog.Adapter
A Datadog APM implementation for Spandex.
Link to this section Summary
Functions
Fetches the Datadog-specific conn request headers if they are present
Injects Datadog-specific HTTP headers to represent the specified SpanContext
Link to this section Functions
Link to this function
distributed_context(conn, opts)
distributed_context(conn :: Plug.Conn.t(), Spandex.Tracer.opts()) :: {:ok, Spandex.SpanContext.t()} | {:error, :no_distributed_trace}
Fetches the Datadog-specific conn request headers if they are present.
Link to this function
inject_context(headers, span_context, opts)
inject_context( [{term(), term()}], Spandex.SpanContext.t(), Spandex.Tracer.opts() ) :: [{term(), term()}]
Injects Datadog-specific HTTP headers to represent the specified SpanContext