// Get the index of the shard which stores the given spanId. func (store *dataStore) getShardIndex(sid common.SpanId) int { return int(sid.Hash32() % uint32(len(store.shards))) }