Tinkex.SamplingRegistry (Tinkex v0.3.4)

View Source

Registry that tracks SamplingClient processes and cleans up ETS entries on exit.

Summary

Functions

Returns a specification to start this module under a supervisor.

Register a SamplingClient process with its configuration payload.

Start the registry.

Types

state()

@type state() :: %{monitors: %{required(reference()) => pid()}}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

register(pid, config)

@spec register(pid(), map()) :: :ok

Register a SamplingClient process with its configuration payload.

start_link(opts \\ [])

Start the registry.