Skip to content

Commit

Permalink
Fixes span naming in rpc/validator (#6182)
Browse files Browse the repository at this point in the history
* fixes span names
  • Loading branch information
farazdagi committed Jun 9, 2020
1 parent 0387641 commit bea2b34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions beacon-chain/rpc/validator/proposer.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const eth1dataTimeout = 2 * time.Second
// GetBlock is called by a proposer during its assigned slot to request a block to sign
// by passing in the slot and the signed randao reveal of the slot.
func (vs *Server) GetBlock(ctx context.Context, req *ethpb.BlockRequest) (*ethpb.BeaconBlock, error) {
ctx, span := trace.StartSpan(ctx, "ProposerServer.RequestBlock")
ctx, span := trace.StartSpan(ctx, "ProposerServer.GetBlock")
defer span.End()
span.AddAttributes(trace.Int64Attribute("slot", int64(req.Slot)))

Expand Down Expand Up @@ -454,7 +454,7 @@ func constructMerkleProof(trie *trieutil.SparseMerkleTrie, index int, deposit *e
}

func (vs *Server) packAttestations(ctx context.Context, slot uint64) ([]*ethpb.Attestation, error) {
ctx, span := trace.StartSpan(ctx, "validatorServer.packAttestations")
ctx, span := trace.StartSpan(ctx, "ProposerServer.packAttestations")
defer span.End()
st, err := vs.HeadFetcher.HeadState(ctx)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion beacon-chain/rpc/validator/status.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ func (vs *Server) validatorStatus(
headState *stateTrie.BeaconState,
pubKey []byte,
) (*ethpb.ValidatorStatusResponse, uint64) {
ctx, span := trace.StartSpan(ctx, "validatorServer.validatorStatus")
ctx, span := trace.StartSpan(ctx, "ValidatorServer.validatorStatus")
defer span.End()

// Using ^0 as the default value for index, in case the validators index cannot be determined.
Expand Down

0 comments on commit bea2b34

Please sign in to comment.