HomeSource World

rpc: metrics for JSON-RPC method calls (#20847)

Description

rpc: metrics for JSON-RPC method calls (#20847)

This adds a couple of metrics for tracking the timing
and frequency of method calls:

  • rpc/requests gauge counts all requests
  • rpc/success gauge counts requests which return err == nil
  • rpc/failure gauge counts requests which return err != nil
  • rpc/duration/all timer tracks timing of all requests
  • rpc/duration/<method>/<success/failure> tracks per-method timing

Details

Provenance
gary rong <garyrong0905@gmail.com>Authored on Apr 3 2020, 10:36 AM
GitHub <noreply@github.com>Committed on Apr 3 2020, 10:36 AM
Parents
rGETH462ddce5b2a4: crypto/ecies: improve concatKDF (#20836)
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rGETHbe9172a7ac5c: rpc: metrics for JSON-RPC method calls (#20847) (authored by gary rong <garyrong0905@gmail.com>).Apr 3 2020, 10:36 AM