Cristian Álvarez
banner
crbelaus.com
Cristian Álvarez
@crbelaus.com
I write software (mainly #ElixirLang) and I do martial arts. Sometimes I blog at https://crbelaus.com/
Pinned
Over the last few months I've been in charge of deep data structure refactors on a big #ElixirLang application.
I'll write a detailed blog post with the lessons learnt, but the most important takeaway is to rely on pattern match and guards as much as possible.
Version 0.7 of the #ElixirLang Error Tracker 🐛 is out with improved LiveView support, MariaDB fixes, better sensitive header redaction and an all-new Igniter installer.

github.com/elixir-error...
Release v0.7.0 · elixir-error-tracker/error-tracker
What's Changed Igniter installer by @crbelaus in #149 Improve documentation of Error kind field by @tjarratt in #154 Require LiveView 1.0 at least by @crbelaus in #159 Require Ecto 3.13 at least b...
github.com
November 9, 2025 at 10:22 AM
Reposted by Cristian Álvarez
It's official! Igniter support is coming to the next version of #ErrorTracker 🚀. It's already merged on main and will be included in the next release @zachdaniel.dev #ElixirLang
May 11, 2025 at 6:03 PM
I got a small PR merged into Plug.
You could use Plug.RequestID multiple times with different options but it always set the same logger metadata, overriding the previous value with each call.

This is configurable now.

github.com/elixir-plug/...

#myelixirstatus #elixirlang
Customize the Logger metadata key name by crbelaus · Pull Request #1267 · elixir-plug/plug
In certain scenarios we may want to use the Plug.RequestID plug multiple times with different headers or assigns. While this is possible, the issue is that every call adds a :request_id key to the ...
github.com
April 24, 2025 at 6:48 AM
I wrote about embedding external resources in your #elixirlang application so the compiler can keep track of when they change.

crbelaus.com/2025/03/31/e...
Embedding external resources in Elixir code | Cristian Álvarez Belaustegui
If your Elixir module reads external resources during compilation you should use the @external_resources attribute so the compiler can track those resources and recompile when they change.
crbelaus.com
April 6, 2025 at 5:58 AM
My pull request has just been merged!
If you use difftastic with #elixirlang (you should! it is amazing) you will notice that changes in ~H sigils are now properly highlighted.

github.com/Wilfred/diff...
February 10, 2025 at 5:53 PM
The #elixirlang ErrorTracker has just surpassed 40k downloads.
Codebase has been slowly improving and stabilising since the initial release. We just need a logger handler and then it can be considered "done".

github.com/elixir-error...
GitHub - elixir-error-tracker/error-tracker: 🐛 An Elixir-based built-in error reporting and tracking solution
🐛 An Elixir-based built-in error reporting and tracking solution - elixir-error-tracker/error-tracker
github.com
February 10, 2025 at 9:01 AM
Amazing to see how well the ErrorTracker and @ash-hq.org work together 🤝
I just configured ErrorTracker (hex.pm/packages/err...) on my project that uses @ash-hq.org and found it’s super easy to restrict the error dashboard to logged in users.
If you use Ash Authentication and its Phoenix extension, you only need to pass the `on_mount` option. It just works!
#ElixirLang
December 31, 2024 at 6:42 PM
Thread worth reading for #ElixirLang devs.
ecto queries in liveviews and controllers? discuss. 🍿 #ElixirLang #phoenix #code
December 28, 2024 at 9:58 AM
After using it daily for a few weeks I can confidently say that jj is to git what Tailwind is to CSS.

I went from "I don't think this adds any value over vanilla git" to "I don't know how I ever worked without this".
December 26, 2024 at 9:56 AM
TIL that you can use github.com/michallepick... to install prebuilt Erlang versions with asdf instead of compiling them from source. Much faster and less problematic.
GitHub - michallepicki/asdf-erlang-prebuilt-macos: Erlang plugin for asdf version manager, using Erlang builds by erlef/otp_builds for macOS
Erlang plugin for asdf version manager, using Erlang builds by erlef/otp_builds for macOS - michallepicki/asdf-erlang-prebuilt-macos
github.com
December 18, 2024 at 8:16 AM
Just compiled my job codebase to #ElixirLang 1.18 rc.0 and it already found dead code (four unused function clauses which were the only callers of some other private functions) and a typing violation (min/2 comparison between two structs).
December 17, 2024 at 11:48 AM
Over the last few months I've been in charge of deep data structure refactors on a big #ElixirLang application.
I'll write a detailed blog post with the lessons learnt, but the most important takeaway is to rely on pattern match and guards as much as possible.
December 12, 2024 at 3:32 PM
I’ve been diagnosed with a damaged L4-L5 disk. Doctor tells me that BJJ is not doing any good to my lower back and I’d better do pilates/swimming instead.
December 9, 2024 at 10:03 AM
This entire thread is word reading if you use git. Maybe even if you don't.
My opinion on squash merge: don't. This is the hill I'll die on.
November 28, 2024 at 11:41 AM
Reposted by Cristian Álvarez
So nice to see close collaboration between libraries 👏

Thanks @zachdaniel.dev for your awesome work on @ash-hq.org ❤️
And thanks to @crbelaus.com who is co-maintaining ErrorTracker and made the changes to support it 🧙‍♂️
Awesome stuff! Great for @ash-hq.org users, but you can also get bread crumbs for your errors for free using our standalone splode library: hex.pm/packages/spl...! In anticipation of this release, I went through and added a bunch more breadcrumbs to Ash errors 😎
November 26, 2024 at 5:37 PM
Reposted by Cristian Álvarez
Awesome stuff! Great for @ash-hq.org users, but you can also get bread crumbs for your errors for free using our standalone splode library: hex.pm/packages/spl...! In anticipation of this release, I went through and added a bunch more breadcrumbs to Ash errors 😎
November 26, 2024 at 5:34 PM
The @ash-hq.org integration would not have been possible without @zachdaniel.dev help. He is incredibly responsive and helpful. The #ElixirLang community is incredible.
November 26, 2024 at 4:29 PM
Reposted by Cristian Álvarez
Another milestone reached! So proud of being one of the maintainers of this little but useful library ⚗️💻 #ElixirLang
November 25, 2024 at 7:05 PM
Reposted by Cristian Álvarez
I want to share something I built for the Elixir community: elixirevents.net ✨ I want to make it easier to find events like conferences and meetups, to help the community grow. Anyone can contribute, events are only visible with admin approval. For feature requests or feedback please let me know! 🙏
ElixirEvents
The Elixir event calendar
elixirevents.net
November 25, 2024 at 5:28 PM
The ErrorTracker GitHub repo has just reached 400 stars ⭐️. Nice features coming soon! #ElixirLang

github.com/elixir-error...
GitHub - elixir-error-tracker/error-tracker: 🐛 An Elixir-based built-in error reporting and tracking solution
🐛 An Elixir-based built-in error reporting and tracking solution - elixir-error-tracker/error-tracker
github.com
November 24, 2024 at 10:44 AM
I've just released a new version of the @bun.sh installer for #ElixirLang. It now supports installing, updating and managing bun on Windows hosts.

github.com/crbelaus/bun...
Release v1.4.0 · crbelaus/bun
This version adds support for installing Bun on Windows systems. What's Changed feat: add windows support by @deathman92 in #27 New Contributors @deathman92 made their first contribution in #27 ...
github.com
November 17, 2024 at 10:26 AM
I've been using Qwen2.5-Coder for #ElixirLang through Ollama and Zed. It works surprisingly well for such a small model and is very competent both at writing new code and explaining existing code.
November 15, 2024 at 7:54 AM
Why did we built an Elixir-based, built-in error tracker?
Here's our reasoning.

crbelaus.com/2024/07/31/b...
Built-in Elixir error reporting and tracking
SaaS fatigue is real. Reliance on third-party tools is widespread. How did we get to this situation? Starting a project should not require you to sign up for five different services.
crbelaus.com
November 13, 2024 at 9:42 AM
A few improvements are coming no the #ElixirLang ErrorTracker dashboard so it looks (and works) better on small screens.

github.com/elixir-error...
Improve dashboard for mobile devices by crbelaus · Pull Request #108 · elixir-error-tracker/error-tracker
The error list page was not pretty on mobile. This fixes the error list on mobile and closes #105 Before After
github.com
November 11, 2024 at 9:53 PM