Support for non-unique process labels?

Kenneth Lundin kenneth.lundin@REDACTED
Fri May 7 09:38:09 CEST 2021


Take a look at https://github.com/uwiger/gproc, it seems to be a good fit
for your requirements.

/Kenneth

On Fri, May 7, 2021 at 9:28 AM Nicolas Martyanoff <khaelin@REDACTED> wrote:

> Lukas Larsson <lukas@REDACTED> writes:
> > I would not be against extending proc_lib to allow setting additional
> > metadata that be fetched by observer.
> This would be quite useful for processes which are uniquely identifiable
> but dynamically instanciated. For example, I would love to be able to
> have
>
> - Database pools, created from application environment, identified as
>   {db_pool, Name}.
> - Web connections identified as {web_connection, PeerAddress}.
>
> This would make my life so much easier when debugging.
>
> Maybe something similar to logger metadata ? Associating a map of type
> #{label := term(), _ => _} to each process would be really flexible.
>
> --
> Nicolas Martyanoff
> http://snowsyn.net
> khaelin@REDACTED
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20210507/e1f6fba7/attachment.htm>


More information about the erlang-questions mailing list