ElixirScope.Distributed.NodeCoordinator (elixir_scope v0.0.1)

Coordinates ElixirScope tracing across multiple BEAM nodes.

Handles:

  • Node discovery and registration
  • Event synchronization across nodes
  • Distributed correlation ID management
  • Network partition handling
  • Cross-node query coordination

Summary

Functions

Returns a specification to start this module under a supervisor.

Queries events across all nodes in the cluster.

Gets all nodes currently in the cluster.

Registers a new node with the cluster.

Sets up ElixirScope cluster with the given nodes.

Starts the NodeCoordinator for the local node.

Synchronizes events across all cluster nodes.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

distributed_query(query_params)

Queries events across all nodes in the cluster.

get_cluster_nodes()

Gets all nodes currently in the cluster.

handle_cluster_change(change_event)

register_node(node)

Registers a new node with the cluster.

setup_cluster(nodes)

Sets up ElixirScope cluster with the given nodes.

start_link(opts \\ [])

Starts the NodeCoordinator for the local node.

sync_events()

Synchronizes events across all cluster nodes.