in a similar manner to how metrics are collected on the HTTP API.
in a similar manner to how metrics are collected on the HTTP API.