<div dir="ltr"><div>Take a look at <a href="https://github.com/uwiger/gproc">https://github.com/uwiger/gproc</a>, it seems to be a good fit for your requirements.</div><div><br></div><div>/Kenneth<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, May 7, 2021 at 9:28 AM Nicolas Martyanoff <<a href="mailto:khaelin@gmail.com">khaelin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Lukas Larsson <<a href="mailto:lukas@erlang.org" target="_blank">lukas@erlang.org</a>> writes:<br>
> I would not be against extending proc_lib to allow setting additional<br>
> metadata that be fetched by observer.<br>
This would be quite useful for processes which are uniquely identifiable<br>
but dynamically instanciated. For example, I would love to be able to<br>
have<br>
<br>
- Database pools, created from application environment, identified as<br>
{db_pool, Name}.<br>
- Web connections identified as {web_connection, PeerAddress}.<br>
<br>
This would make my life so much easier when debugging.<br>
<br>
Maybe something similar to logger metadata ? Associating a map of type<br>
#{label := term(), _ => _} to each process would be really flexible.<br>
<br>
-- <br>
Nicolas Martyanoff<br>
<a href="http://snowsyn.net" rel="noreferrer" target="_blank">http://snowsyn.net</a><br>
<a href="mailto:khaelin@gmail.com" target="_blank">khaelin@gmail.com</a><br>
</blockquote></div>