Elixir & Erlang's new process labels! πŸ”₯

Notes

Erlang 27 just came out and added process labels. It’s a way to label a process in a non-unique way (unlike, say, registering our process with a name).

And Elixir 1.17 exposes a new Process.set_label/1 function to set those labels.

Those labels will show up in observer and other debugging. You can even see them stored in the process dictionary!

iex> Process.set_label(:my_process_label)

iex> Process.info(pid, :dictionary)
  # other stuff
  {:"$process_label", :my_process_label},

Want the latest Elixir Streams in your inbox?

    No spam. Unsubscribe any time.