No description
The ingress + Grafana pipeline parses JSON-formatted log lines; Elixir's default text formatter was the odd format everywhere else, forcing Loki to fall back to free-text parsing. Swap the `:default` :logger handler's formatter to `LoggerJSON.Formatters.Basic` when `LOG_FORMAT=json`. Defaults: `LOG_FORMAT=text` for dev/test (no behaviour change), `json` for prod. Whitelisted metadata covers the fields we actually correlate on — `request_id`, `trace_id`, `worker`, `queue`, `job_id`. OTP 28 / Elixir 1.19 exposes `Logger.Formatter.new/1` but ships no JSON encoder of its own, so `logger_json` (~> 7.0) carries the rendering. The test pokes the formatter directly rather than round-tripping through ExUnit's capture_log, which replaces the handler and so can't see the installed formatter's output. |
||
|---|---|---|
| .forgejo/workflows | ||
| .github | ||
| assets | ||
| bin | ||
| config | ||
| docs | ||
| k8s | ||
| lib | ||
| lib_ml | ||
| notebooks | ||
| priv | ||
| rel | ||
| rust/prop_grid_rs | ||
| scripts | ||
| test | ||
| vendor | ||
| .credo.exs | ||
| .dockerignore | ||
| .formatter.exs | ||
| .gitignore | ||
| .tool-versions | ||
| AGENTS.md | ||
| algo.md | ||
| app.json | ||
| CLAUDE.md | ||
| Dockerfile | ||
| elevation.md | ||
| mix.exs | ||
| mix.lock | ||
| prediction.md | ||
| README.md | ||
| tail_logs.sh | ||
| updates.md | ||
Microwaveprop
To start your Phoenix server:
- Run
mix setupto install and setup dependencies - Start Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
Ready to run in production? Please check our deployment guides.
Learn more
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix