View Source ExInsights.Worker (ExInsights v0.8.1)
A named genserver responsible for batching telemetry requests. Fires up a separate process every 30secs (configurable) to upload the data to azure
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor.
Sends any pending messages to azure.
Callback implementation for GenServer.init/1
.
Link to this section Types
@type option() :: {:instrumentation_key, ExInsights.Telemetry.Types.instrumentation_key()} | {:flush_interval_secs, non_neg_integer()} | {:client_module, atom()}
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Sends any pending messages to azure.
Required for Elixir.Logger hookup
Callback implementation for GenServer.init/1
.
@spec start_link([option()]) :: GenServer.on_start()