# Changelog

## 0.1.0

First release.

- Reports crashes from any process through a `:logger` handler:
  controllers, LiveViews, GenServers, Tasks. Exceptions Plug maps to a
  4xx status (`Ecto.NoResultsError`, …) aren't reported, LiveView
  crashes included.
- An error logged with a crash reason but no stacktrace (DBConnection
  logs each failed reconnect so) gets one frame, the call that logged
  it, and carries the logged line as its message and the line's plain
  metadata values and domain as tags.
- Error events carry the request id (`request_id`, from Logger
  metadata, which `Plug.RequestId` sets).
- Reports Oban job failures when Oban is loaded, tagged with the worker,
  queue, job id, attempt, max attempts and args (secret-looking keys
  filtered at any depth, cut past 2 KB of JSON; `config :tlm, oban:
  [args: false]` leaves them out). Jobs returning `{:cancel, _}` or
  `{:discard, _}` aren't reported, nor `{:error, _}` while attempts
  remain; `{:error, exception}` is reported as that exception, and a
  returned error gets one frame, the worker's `perform/1`.
- Breadcrumbs from log lines, plus Ecto queries for configured repos,
  with the time spent waiting for a connection told apart.
- A dependency's frames are named from `deps/` on, as in dev.
- Heartbeats: one when the app starts and one every hour, with its
  release, environment, server, SDK and Elixir/OTP versions.
- Configured by DSN, `https://tlm_…@tlm.hullop.com`, from `config :tlm,
  dsn: …` or the `TLM_DSN` environment variable; `:key` (`TLM_KEY`) and
  `:endpoint` work too. An invalid DSN sends nothing and warns at boot.
- `Tlm.Plug` for request details, `Tlm.set_user/1` for the user's id.
- `mix tlm.package_source` so releases can show source lines and find
  where each module is defined.
- `mix tlm.test` and `Tlm.test_event/0` send a test event right away and
  report the answer.
- `Tlm.capture_exception/2` and `Tlm.capture_message/2`.
- Background sending with a bounded queue, safe retries and
  `Retry-After` support. A refused key (401, 403) stops sending until
  the app restarts.
