Tornex.Telemetry (Tornex v0.4.1)

View Source

Telemetry for Tornex using :telemetry.

Tornex.Telemetry defaults to using Logger to handle telemetry events, but this behavior can be customized by not attaching the default logger.

Summary

Functions

Attaches the default Tornex :telemetry handler built on-top of Logger.

Detaches the default Tornex telemetry handler.

Functions

attach_default_logger(opts \\ [])

@spec attach_default_logger(opts :: Keyword.t()) :: :ok | {:error, :already_exists}

Attaches the default Tornex :telemetry handler built on-top of Logger.

Options

  • :ignored - (list) List of events to not be attached
  • :encode - (bool)
  • :level - (atom) Minimum log level for telemetry events

detach_default_logger()

@spec detach_default_logger() :: :ok | {:error, :not_found}

Detaches the default Tornex telemetry handler.