Skip to content

Add support for process labels in membrane_core #963

Open
@varsill

Description

@varsill

Since OTP 27 it's possible to bind a label (being any desired term()) to a process with: https://hexdocs.pm/elixir/Process.html#set_label/1
The labels are then used for example when displaying processes list in the :observer.
The idea is to add a config to membrane_core that would set the label as the component path for all the components processes (pipelines, bins and elements) to make debugging easier.

In membrane_core there is already an option :unsafely_name_processes_for_stalker which makes all the component processes registered under a name being an atom representing component's path. The drawback of this approach is that it dynamically creates atoms which might cause a memory leak. We might consider depricating this option as all its possible application would be covered by the by the set_label approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions