Skip to content

Commit

Permalink
fix(ARCO-276): Fix span names (#635)
Browse files Browse the repository at this point in the history
  • Loading branch information
boecklim authored Nov 8, 2024
1 parent 2ce7f11 commit 63be8a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/blocktx/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ func (p *Processor) buildMerkleTreeStoreChainHash(ctx context.Context, txids []*
func (p *Processor) processBlock(msg *p2p.BlockMessage) error {
ctx := p.ctx

ctx, span := tracing.StartTracing(ctx, "HandleBlock", p.tracingEnabled, p.tracingAttributes...)
ctx, span := tracing.StartTracing(ctx, "processBlock", p.tracingEnabled, p.tracingAttributes...)
defer tracing.EndTracing(span)

timeStart := time.Now()
Expand Down
2 changes: 1 addition & 1 deletion pkg/api/handler/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ func (m ArcDefaultHandler) validateEFTransaction(ctx context.Context, txValidato
}

func (m ArcDefaultHandler) validateBEEFTransaction(ctx context.Context, txValidator validator.BeefValidator, beefTx *beef.BEEF, options *metamorph.TransactionOptions) *api.ErrorFields {
ctx, span := tracing.StartTracing(ctx, "validateEFTransaction", m.tracingEnabled, m.tracingAttributes...)
ctx, span := tracing.StartTracing(ctx, "validateBEEFTransaction", m.tracingEnabled, m.tracingAttributes...)
defer tracing.EndTracing(span)

if options.SkipTxValidation {
Expand Down

0 comments on commit 63be8a8

Please sign in to comment.