View Source Datadog.DataStreams.Transport (Data Streams Ex v1.2.2)

An HTTP client for Datadog data streams reporting. It uses the Finch library for requests.

Summary

Functions

Sends a MessagePack-ed binary to the Datadog agent. Ensuring it is acknowledged by response before returning :ok.

Types

@type response() ::
  Finch.Response.t()
  | %{body: map(), headers: Mint.Types.headers(), status: non_neg_integer()}

Functions

Link to this function

send_pipeline_stats(stats)

View Source
@spec send_pipeline_stats(binary()) :: :ok | {:error, any()}

Sends a MessagePack-ed binary to the Datadog agent. Ensuring it is acknowledged by response before returning :ok.