telemetry_async v0.0.1 TelemetryAsync.ShardSupervisor

Supervisor that manages the Shards. The requested number of shards will be started with the specified prefix

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

Starts the ShardSupervisor. There are several options available

Link to this section Functions

Link to this function

child_spec(arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

Callback invoked to start the supervisor and during hot code upgrades.

Developers typically invoke Supervisor.init/2 at the end of their init callback to return the proper supervision flags.

Callback implementation for Supervisor.init/1.

Link to this function

start_link(opts)

Starts the ShardSupervisor. There are several options available:

  • prefix - (optional) An atom that is used to name the individual Shards. Defaults to TelemetryAsync.Shard
  • pool_size - (optional) The size of the ShardSupervisor pool. This defaults to the number of schedulers