# `Zexbox.Metrics.ContextRegistry`
[🔗](https://github.com/Intellection/zexbox/blob/main/lib/zexbox/metrics/context_registry.ex#L1)

GenServer that maintains an ETS set of PIDs for which metrics are disabled.
Monitors registered PIDs and removes them on :DOWN to prevent leaks.

# `child_spec`

Returns a specification to start this module under a supervisor.

See `Supervisor`.

# `disabled?`

```elixir
@spec disabled?(pid() | atom() | nil) :: boolean()
```

Returns true if the given pid is in the disabled set.

# `register`

```elixir
@spec register(pid()) :: :ok
```

Registers the given pid as disabled for metrics. The pid is monitored
so the entry is removed when the process exits.

# `start_link`

```elixir
@spec start_link(keyword()) :: GenServer.on_start()
```

# `unregister`

```elixir
@spec unregister(pid()) :: :ok
```

Removes the given pid from the disabled set.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
