# trace_guard v0.1.0 - API Reference

## Modules

- Public API
  - [TraceGuard](TraceGuard.md): Diagnostic reports for failed Phoenix requests.
  - [TraceGuard.Exporter.JSON](TraceGuard.Exporter.JSON.md): Encodes diagnostic reports as JSON using `Jason`.
  - [TraceGuard.Plug](TraceGuard.Plug.md): Starts a TraceGuard trace for each request.

- Experimental: propagation and storage
  - [TraceGuard.ReportStore](TraceGuard.ReportStore.md): The default `TraceGuard.Storage` adapter: a bounded, in-memory store of
finished (already redacted) reports in one GenServer.
  - [TraceGuard.Server](TraceGuard.Server.md): **Experimental in 0.1.0** (explicit GenServer propagation): the API may change before 1.0.
  - [TraceGuard.Storage](TraceGuard.Storage.md): **Experimental in 0.1.0** (the storage behaviour): the API may change before 1.0.
  - [TraceGuard.Storage.Ecto](TraceGuard.Storage.Ecto.md): **Experimental in 0.1.0** (the Ecto/PostgreSQL adapter): the API may
change before 1.0.
  - [TraceGuard.Storage.Ecto.Migration](TraceGuard.Storage.Ecto.Migration.md): **Experimental in 0.1.0.** Creates and drops the table used by
`TraceGuard.Storage.Ecto`, from **your application's own migration**.
TraceGuard never runs migrations itself.
  - [TraceGuard.Storage.SQLite](TraceGuard.Storage.SQLite.md): **Experimental in 0.1.0** (the SQLite adapter): the API may change before 1.0.

- Internals (not public API)
  - [TraceGuard.Config](TraceGuard.Config.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.Context](TraceGuard.Context.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.DropLog](TraceGuard.DropLog.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.EventCollector](TraceGuard.EventCollector.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.Propagation](TraceGuard.Propagation.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.Propagation.Token](TraceGuard.Propagation.Token.md): **Internal.** The opaque value `TraceGuard.wrap/1` and `TraceGuard.call/3`
carry into other processes: a trace ID, the trace's collector pid and an
`:atomics` budget reference. Never construct or inspect it.

  - [TraceGuard.Redactor](TraceGuard.Redactor.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.TaskCollector](TraceGuard.TaskCollector.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.Telemetry](TraceGuard.Telemetry.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.
  - [TraceGuard.TraceBuilder](TraceGuard.TraceBuilder.md): **Internal module.** Not part of TraceGuard's public API: it may change in
any release. Use the functions in `TraceGuard` instead.

## Mix Tasks

- Experimental: propagation and storage
  - [mix trace_guard.gen.ecto_migration](Mix.Tasks.TraceGuard.Gen.EctoMigration.md): Generates an Ecto migration, in **your** application, that creates the
table used by `TraceGuard.Storage.Ecto` (experimental).

