View Source Finch.HTTP2.PoolMetrics (Finch v0.18.0)

HTTP2 Pool metrics.

Available metrics:

  • :pool_index - Index of the pool
  • :in_flight_requests - Number of requests currently on the connection

Caveats:

  • HTTP2 pools have only one connection and leverage the multiplex nature of the protocol. That's why we only keep the in flight requests, representing the number of streams currently running on the connection.

Summary

Types

@type t() :: %Finch.HTTP2.PoolMetrics{in_flight_requests: term(), pool_index: term()}

Functions

Link to this function

get_pool_status(name, shp, pool_idx)

View Source
Link to this function

init(finch_name, shp, pool_idx)

View Source
Link to this function

maybe_add(ref, metrics_list)

View Source