From 017fcc2377f81da927ef2d344954c5f3869b0422 Mon Sep 17 00:00:00 2001 From: "Aratz M. Lasa" Date: Tue, 17 Jan 2023 23:15:39 +0100 Subject: [PATCH] add processingTime to the slot processing logs --- pkg/service.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/service.go b/pkg/service.go index c661ccb6..bb530624 100644 --- a/pkg/service.go +++ b/pkg/service.go @@ -98,6 +98,8 @@ func (s *Service) RunBeacon(ctx context.Context, client BeaconClient) error { case <-ctx.Done(): return ctx.Err() case ev := <-events: + t := time.Now() + err := s.processNewSlot(ctx, client, ev) if err != nil { logger. @@ -117,6 +119,7 @@ func (s *Service) RunBeacon(ctx context.Context, client BeaconClient) error { "numDuties": len(duties), "numKnownValidators": len(validators), "knownValidatorsUpdateTime": s.knownValidatorsUpdateTime(), + "processingTimeMs": time.Since(t), }).Debug("processed new slot") } }