Spandex v1.3.3 Spandex.Datadog.ApiServer View Source

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

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Builds proper state for server with some defaults

Send spans asynchronously to DataDog

Starts genserver with given arguments

Link to this section Types

Link to this type t() View Source
t() :: %Spandex.Datadog.ApiServer{agent_pid: term, asynchronous_send?: term, batch_size: term, channel: term, endpoint: term, host: term, http: term, port: term, sync_threshold: term, url: term, verbose: term, waiting_traces: term}

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function init(args) View Source
init(args :: Keyword.t) :: {:ok, t}

Builds proper state for server with some defaults.

Link to this function send_and_log(traces, state) View Source
send_and_log(traces :: [[map]], any) :: :ok
Link to this function send_spans(spans, opts \\ []) View Source
send_spans(spans :: [map], Keyword.t) :: :ok

Send spans asynchronously to DataDog.

Starts genserver with given arguments.