creachadair / jrpc2

A Go implementation of a JSON-RPC 2.0 server and client.
BSD 3-Clause "New" or "Revised" License
62 stars 10 forks source link

Replace idiosyncratic metrics collector with expvar. #89

Closed creachadair closed 2 years ago

creachadair commented 2 years ago

This change removes the "metrics" package from the module and updates the existing metrics to use the standard expvar package instead. The package creates a shared *expvar.Map at initialization time, and populates expvar metrics for the existing server details (request counts, bytes read/written, active servers, etc.).

This is a breaking change to the module API.

Updates #46.