Remove Top Jaeger Span Offenders (#7655)

This commit is contained in:
Raul Jordan 2020-10-28 00:14:54 -05:00 committed by GitHub
parent 0cbd8bc03d
commit ec8eab21ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 7 deletions

View File

@ -118,8 +118,6 @@ func (s *Store) BlockRoots(ctx context.Context, f *filters.QueryFilter) ([][32]b
// HasBlock checks if a block by root exists in the db.
func (s *Store) HasBlock(ctx context.Context, blockRoot [32]byte) bool {
ctx, span := trace.StartSpan(ctx, "BeaconDB.HasBlock")
defer span.End()
if v, ok := s.blockCache.Get(string(blockRoot[:])); v != nil && ok {
return true
}

View File

@ -56,8 +56,6 @@ func (s *Store) StateSummary(ctx context.Context, blockRoot [32]byte) (*pb.State
// HasStateSummary returns true if a state summary exists in DB.
func (s *Store) HasStateSummary(ctx context.Context, blockRoot [32]byte) bool {
ctx, span := trace.StartSpan(ctx, "BeaconDB.HasStateSummary")
defer span.End()
enc, err := s.stateSummaryBytes(ctx, blockRoot)
if err != nil {
panic(err)
@ -66,9 +64,6 @@ func (s *Store) HasStateSummary(ctx context.Context, blockRoot [32]byte) bool {
}
func (s *Store) stateSummaryBytes(ctx context.Context, blockRoot [32]byte) ([]byte, error) {
ctx, span := trace.StartSpan(ctx, "BeaconDB.stateSummaryBytes")
defer span.End()
var enc []byte
err := s.db.View(func(tx *bolt.Tx) error {
bucket := tx.Bucket(stateSummaryBucket)