mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
normalize span names
This commit is contained in:
parent
646be76779
commit
3a6ff92ef1
2 changed files with 4 additions and 4 deletions
|
|
@ -2161,7 +2161,7 @@ func (bc *BlockChain) ProcessBlock(ctx context.Context, parentRoot common.Hash,
|
|||
|
||||
// Process block using the parent state as reference point
|
||||
pstart := time.Now()
|
||||
pctx, _, spanEnd := telemetry.StartSpan(ctx, "core.Process")
|
||||
pctx, _, spanEnd := telemetry.StartSpan(ctx, "bc.processor.Process")
|
||||
res, err := bc.processor.Process(pctx, block, statedb, bc.cfg.VmConfig)
|
||||
spanEnd(err)
|
||||
if err != nil {
|
||||
|
|
@ -2171,7 +2171,7 @@ func (bc *BlockChain) ProcessBlock(ctx context.Context, parentRoot common.Hash,
|
|||
ptime := time.Since(pstart)
|
||||
|
||||
vstart := time.Now()
|
||||
_, _, spanEnd = telemetry.StartSpan(ctx, "core.ValidateState")
|
||||
_, _, spanEnd = telemetry.StartSpan(ctx, "bc.validator.ValidateState")
|
||||
err = bc.validator.ValidateState(block, statedb, res, false)
|
||||
spanEnd(err)
|
||||
if err != nil {
|
||||
|
|
|
|||
|
|
@ -735,7 +735,7 @@ func (api *ConsensusAPI) newPayload(ctx context.Context, params engine.Executabl
|
|||
|
||||
log.Trace("Engine API request received", "method", "NewPayload", "number", params.Number, "hash", params.BlockHash)
|
||||
attrs := executableDataAttrs(params)
|
||||
_, _, spanEnd := telemetry.StartSpan(ctx, "engine.newPayload.ExecutableDataToBlock", attrs...)
|
||||
_, _, spanEnd := telemetry.StartSpan(ctx, "engine.ExecutableDataToBlock", attrs...)
|
||||
block, err := engine.ExecutableDataToBlock(params, versionedHashes, beaconRoot, requests)
|
||||
spanEnd(err)
|
||||
if err != nil {
|
||||
|
|
@ -810,7 +810,7 @@ func (api *ConsensusAPI) newPayload(ctx context.Context, params engine.Executabl
|
|||
return engine.PayloadStatusV1{Status: engine.ACCEPTED}, nil
|
||||
}
|
||||
log.Trace("Inserting block without sethead", "hash", block.Hash(), "number", block.Number())
|
||||
sctx, _, spanEnd := telemetry.StartSpan(ctx, "engine.newPayload.InsertBlockWithoutSetHead", attrs...)
|
||||
sctx, _, spanEnd := telemetry.StartSpan(ctx, "api.eth.Blockchain().InsertBlockWithoutSetHead", attrs...)
|
||||
start := time.Now()
|
||||
proofs, err := api.eth.BlockChain().InsertBlockWithoutSetHead(sctx, block, witness)
|
||||
processingTime := time.Since(start)
|
||||
|
|
|
|||
Loading…
Reference in a new issue