Flexflow.Telemetry (flexflow v0.2.0) View Source

Telemetry

Link to this section Summary

Types

t()

Options

  • enable_process_history Enable Process history in :ets
  • telemetry_logger Enable default logger handler, default false
  • telemetry_logger_level Logger level, default debug

Link to this section Types

Specs

state_type() :: :process_loop | :process_init

Specs

t() :: %Flexflow.Telemetry{
  enable_process_history: boolean(),
  telemetry_logger: boolean(),
  telemetry_logger_level: Logger.level()
}

Options

  • enable_process_history Enable Process history in :ets
  • telemetry_logger Enable default logger handler, default false
  • telemetry_logger_level Logger level, default debug

Link to this section Functions

Link to this function

attach_default_handler()

View Source

Specs

attach_default_handler() :: :ok | {:error, :already_exists}
Link to this function

handle_history(list, measurements, metadata, config)

View Source

Specs

handle_history([atom()], map(), map(), term()) :: :ok
Link to this function

handle_logger(list, _, meta, level)

View Source

Specs

handle_logger([atom()], map(), map(), Logger.level()) :: :ok
Link to this function

handle_state(state, measurements, meta, config)

View Source

Specs

handle_state([atom()], map(), map(), t()) :: :ok
Link to this function

invoke_process(p, name, f)

View Source

Specs

Link to this function

span(name, fun, meta \\ %{})

View Source

Specs

span(state_type(), fun :: (() -> {term(), map()}), meta :: map()) :: term()