segment v0.2.0 API Reference
Modules
The Segement analytics-elixir is a non-official third-party client for Segment. Since version 0.2.0
it supports
batch delivery of events and retries for the API.
The Segment.Analytics
module is the easiest way to send Segment events and provides convenience methods for track
, identify,
screen
, alias
, group
, and page
calls
The Segment.Analytics.Batcher
module is the default service implementation for the library which uses the
Segment Batch HTTP API to put events in a FIFO queue and
send on a regular basis.
The Segment.Analytics.Sender
service implementation is an alternative to the default Batcher to send every event as it is called.
The HTTP call is made with an async Task
to not block the GenServer. This will not guarantee ordering.
Segment.Http
is the underlying implementation for making calls to the Segment HTTP API.
The Segment.Http.Stub
is used to replace the Tesla adapter with something that logs and returns success. It is used if send_to_http
has been set to false