# `Parapet`
[🔗](https://github.com/szTheory/parapet/blob/v1.0.0/lib/parapet.ex#L1)

Parapet provides telemetry foundations and safety rails for Phoenix SaaS teams.

This top-level API provides boundary constraints ensuring that metric collection
bugs never crash the host process and high cardinality labels are explicitly rejected.

> #### Stable {: .info}
>
> This module is **stable** as of v1.0.0. Its public API will not change without a
> major-version bump and a full deprecation cycle. See
> [Stability & Deprecation Policy](stability.html) for details.

# `attach`
*since 1.0.0* 

Attaches an exception-safe telemetry handler or activates ecosystem integration adapters.

When a list with `:adapters` is provided, it iterates the adapter atoms, resolves the
corresponding `Parapet.Integrations.*` module, and invokes `setup/0` on each loaded adapter
module. All built-in integration adapters implement the `Parapet.Integration` behaviour, so
`setup/0` is uniform across every adapter.

When a map is provided, it delegates to Parapet.Internal.SafeHandler to ensure errors
in the callback do not propagate back to the execution of the instrumented application code.

---

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