ForgeOps
Hi all, I’m the maintainer of forge_ops_tracker, the Elixir client for ForgeOps, a hosted error tracking service. ForgeOps is a commercial product with a free plan, and I’m the solo developer behind both, so I’m saying that up front. I’m posting mainly to get feedback from people who run BEAM apps in production.
forge_ops_tracker reports crashes and exceptions from anywhere in the VM, plus timings from Phoenix, Ecto and Oban. It is MIT licensed, needs Elixir 1.18+, and has no required dependencies (:httpc/:ssl and the built-in JSON module; :telemetry and :plug are optional).
# mix.exs
{:forge_ops_tracker, "~> 0.10.1"}
# config/runtime.exs
config :forge_ops_tracker,
dsn: System.get_env("FORGE_OPS_DSN"),
environment: "production"
# application.ex, start/2, before the rest of your tree starts
ForgeOpsTracker.install_handlers()
ForgeOpsTracker.Integrations.Phoenix.attach()
ForgeOpsTracker.Integrations.Ecto.attach(MyApp.Repo)
ForgeOpsTracker.Integrations.Oban.attach()
How it works:
- Crashes come from OTP itself.
install_handlers/0attaches a standard:loggerhandler, so a GenServer that raises, a linked process that dies, or an unhandledhandle_infois reported with no per-callback wiring. A plainLogger.erroris deliberately not reported, to keep the noise down. - A failing tracker can’t take your app down. Delivery goes through a supervised, bounded queue, and each HTTP call runs in its own short-lived
Task. If the service is slow or unreachable, the queue drops and logs instead of blocking your process. - Telemetry integrations you attach yourself: per-route, per-query and per-job timings with p50/p95/p99, and a span tree for slow requests and jobs. Only requests over a threshold are sent, so fast requests cost nothing on the wire.
- PII scrubbing happens in the client before anything leaves your node.
- Service side: a process crashing and restarting in a tight loop won’t use up your monthly quota. Past 50 repeats an hour of one issue on the free plan, further repeats are counted but not stored or charged. When a Postgrex error carries the failing statement, the service shows which function or table it touched, with values masked.
What it doesn’t do (yet):
- Traces aren’t propagated across services.
- Outbound HTTP isn’t instrumented automatically, so you wrap calls with
ForgeOpsTracker.span/4. - It uses its own protocol, so it isn’t a drop-in for other trackers’ clients.
I know ErrorTracker and Faulty are well liked here, especially if you want errors stored in your own app. This is the hosted alternative for people who’d rather not run that.
The free plan is 10,000 events a month per project.
What I’d most like to hear:
- What would make you use, or rule out, a hosted tracker for a BEAM app?
- Is there a library I should integrate that I haven’t (Broadway, Absinthe, LiveView)?
- Does the
:loggerhandler approach match how you’d want crashes reported?
Thanks for reading, and I’m happy to answer anything.
Hex: forge_ops_tracker | Hex
Docs: forge_ops_tracker v0.10.1 — Documentation
ForgeOps: Elixir error tracking - ForgeOps
Source:
Trending in Announcing
Other Trending Topics
Latest Phoenix Threads
Latest Oban Threads
Latest on Elixir Forum
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #code-sync
- #discussion
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #ai
- #elixirconf-us
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #blog-post
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #security
- #elixirconf-eu
- #processes
- #api
- #forms
- #hex









