ObserverWeb.Tracer (Observer Web v0.1.5)

This module provides Tracer context

References:

Summary

Functions

This function retrieves all match specs available

This function retrieves all functions within the passed node and module

This function retrieves all modules within the passed node

This function starts the trace for the passed module/functions

This function returns the current trace server state

This function stops the trace for the passed session ID

Types

t()

@type t() :: %ObserverWeb.Tracer{
  functions_by_node: map(),
  max_messages: non_neg_integer(),
  request_pid: pid() | nil,
  session_id: binary() | nil,
  session_timeout_ms: non_neg_integer(),
  status: :idle | :running
}

Functions

get_default_functions_matchspecs()

@spec get_default_functions_matchspecs() :: map()

This function retrieves all match specs available

get_module_functions_info(node \\ Node.self(), module)

@spec get_module_functions_info(node :: atom(), module :: atom()) :: %{
  functions: map(),
  module: atom(),
  node: atom()
}

This function retrieves all functions within the passed node and module

get_modules(node \\ Node.self())

@spec get_modules(node :: atom()) :: list()

This function retrieves all modules within the passed node

start_trace(functions, attrs \\ %{})

@spec start_trace(functions :: list(), attrs :: map()) ::
  {:ok, t()} | {:error, :already_started}

This function starts the trace for the passed module/functions

state()

@spec state() :: map()

This function returns the current trace server state

stop_trace(session_id)

@spec stop_trace(binary()) :: :ok

This function stops the trace for the passed session ID