Re: Support for non-unique process labels?
Kenneth Lundin <[email protected]>
| Newsgroups | gmane.comp.lang.erlang.general |
|---|---|
| Message-ID | <CAOzgw92G=jQKe_S3W2dNkZzyKxx6x7JO7X0Qc7tpaJ-KPNJQCA@mail.gmail.com> |
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 <[email protected]> wrote: > Lukas Larsson <[email protected]> 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 > [email protected] >