Redix.Telemetry.attach_default_handler
You're seeing just the function
attach_default_handler
, go back to Redix.Telemetry module for more information.
Specs
attach_default_handler() :: :ok | {:error, :already_exists}
Attaches the default Redix-provided Telemetry handler.
This function attaches a default Redix-provided handler that logs
(using Elixir's Logger
) the following events:
[:redix, :disconnection]
- logged at the:error
level[:redix, :failed_connection]
- logged at the:error
level[:redix, :connection]
- logged at the:info
level if it's a reconnection, not logged if it's the first connection.
See the module documentation for more information. If you want to attach your own handler, look at the Telemetry page in the documentation.
Examples
:ok = Redix.Telemetry.attach_default_handler()