mix tlm.test (tlm v0.1.0)

Copy Markdown

Sends one test event to Tlm, right away, and prints what it answered, to check the setup end to end:

mix tlm.test
MIX_ENV=prod mix tlm.test

It uses the app's configuration (config/runtime.exs included) and TLM_DSN, without starting the app itself. The environment is the Mix env it runs in, so use MIX_ENV=prod to see it as production.

Exits with 0 when Tlm accepted the event, 1 otherwise. In a release, use Tlm.test_event/0 instead.