Spandex v1.2.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
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{asynchronous_send?: term, channel: term, endpoint: term, host: term, http: term, port: term, url: term, verbose: term}
Link to this section Functions
Builds proper state for server with some defaults.
Link to this function
send_and_log(spans, state)
View Source
send_and_log(spans :: [map], any) :: :ok
Link to this function
send_spans(spans, name \\ __MODULE__)
View Source
send_spans(spans :: [map], any) :: :ok
Send spans asynchronously to DataDog.
Link to this function
start_link(args)
View Source
start_link(args :: Keyword.t) :: GenServer.on_start
Starts genserver with given arguments.