diff --git a/chain/blocksync.go b/chain/blocksync.go index b2e65a9c2..50d24196a 100644 --- a/chain/blocksync.go +++ b/chain/blocksync.go @@ -123,12 +123,10 @@ func (bss *BlockSyncService) processRequest(ctx context.Context, req *BlockSyncR }, nil } - if span.IsRecordingEvents() { - span.AddAttributes( - trace.BoolAttribute("blocks", opts.IncludeBlocks), - trace.BoolAttribute("messages", opts.IncludeMessages), - ) - } + span.AddAttributes( + trace.BoolAttribute("blocks", opts.IncludeBlocks), + trace.BoolAttribute("messages", opts.IncludeMessages), + ) chain, err := bss.collectChainSegment(req.Start, req.RequestLength, opts) if err != nil {