ex_data_hoover v0.1.0 ExDataHoover.Bag behaviour

Specifies callbacks for custom Bags

A bag is injected in a Nozzle and must be able to:

  • extract the trackee id
  • wrap trackee, event, properties

See ExDataHoover.Bag.Simple to see an example

Link to this section Summary

Link to this section Callbacks

Link to this callback trackee_id(any)
trackee_id(any()) :: {:ok, any()} | {:error, String.t()}
Link to this callback wrap(list)
wrap(
  trackee_id: any(),
  trackee: any(),
  traits: map(),
  event: String.t(),
  properties: map()
) :: {:ok, any()} | {:error, String.t()}