Finch v0.2.0 Finch.Telemetry View Source
Telemetry integration.
Unless specified, all time's are in :native units.
Finch executes the following events:
[:finch, :queue, :start]- Executed before checking out a connection from the pool.Measurements
:system_time- The system time
Metadata:
:pool- The pool's pid:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.
[:finch, :queue, :stop]- Executed after a connection is retrieved from the pool.Measurements
:duration- Duration to check out a pool connection.:idle_time- Elapsed time since the connection was last checked in or initialized.
Metadata
:pool- The pool's pid:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.
[:finch, :queue, :exception]- Executed if checking out a connection throws an exception.Measurements
:duration- The time it took before raising an exception
Metadata
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.:kind- The type of exception.:error- Error description or error data.:stacktrace- The stacktrace
[:finch, :connect, :start]- Executed before opening a new connection. If a connection is being re-used this event will not be executed.Measurements
:system_time- The system time
Metadata
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.
[:finch, :connect, :stop]- Executed after a connection is opened.Measurements
:duration- Duration to connect to the host.
Metadata:
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.:error- This value is optional. It includes any errors that occured while opening the connection.
[:finch, :request, :start]- Executed before sending a request.Measurements:
:system_time- The system time
Metadata:
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.:path- The request path.
[:finch, :request, :stop]- Executed after a request is finished.Measurements:
:duration- Duration to make the request.
Metadata:
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.:path- The request path.:error- This value is optional. It includes any errors that occured while making the request.
[:finch, :response, :start]- Executed before receiving the response.Measurements:
:system_time- The system time
Metadata:
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.:path- The request path.
[:finch, :response, :stop]- Executed after a response has been fully received.Measurements:
:duration- Duration to receive the response.
Metadata:
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.:path- The request path.:error- This value is optional. It includes any errors that occured while receiving the response.
[:finch, :reused_connection]- Executed if an existing connection is reused. There are no measurements provided with this event.Metadata:
:scheme- The scheme used in the connection. eitherhttporhttps:host- The host address:port- the port to connect on.