Skip to content

Commit

Permalink
sync review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wondertan committed Oct 25, 2023
1 parent 93301a8 commit 617797f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions p2p/server_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type serverMetrics struct {
func newServerMetrics() (m *serverMetrics, err error) {
m = new(serverMetrics)
m.headersServedInst, err = meter.Int64Counter(
"hdr_p2p_exch_srvr_headers_served",
"hdr_p2p_exch_srvr_headers_served_counter",
metric.WithDescription("number of headers served"),
)
if err != nil {
Expand Down Expand Up @@ -62,7 +62,7 @@ func (m *serverMetrics) rangeServed(ctx context.Context, duration time.Duration,
m.headersServedInst.Add(ctx, int64(headersServed))
m.rangeServeTimeInst.Record(ctx,
duration.Seconds(),
metric.WithAttributes(attribute.Int(headersServedKey, headersServed)),
metric.WithAttributes(attribute.Int(headersServedKey, headersServed/100)),
)
})
}
Expand Down

0 comments on commit 617797f

Please sign in to comment.