File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,8 @@ defmodule DBConnection do
549549
550550 A `[:db_connection, :connection_error]` event is published whenever a
551551 connection checkout receives a `%DBConnection.ConnectionError{}`.
552+ This event is emitted from the process that attempts to checkout the
553+ connection.
552554
553555 Measurements:
554556
@@ -560,8 +562,9 @@ defmodule DBConnection do
560562
561563 * `:opts` - All options given to the pool operation
562564
563- See `DBConnection.TelemetryListener` for enabling `[:db_connection, :connected]`
564- and `[:db_connection, :disconnected]` events.
565+ You may also consume `[:db_connection, :connected]` and `[:db_connection, :disconnected]`
566+ events by spawning a `DBConnection.TelemetryListener` process that subscribes to the pool
567+ and emits them in a robust manner.
565568 """
566569 @ spec start_link ( module , [ start_option ( ) ] | Keyword . t ( ) ) :: GenServer . on_start ( )
567570 def start_link ( conn_mod , opts ) do
You can’t perform that action at this time.
0 commit comments