Skip to content

Commit

Permalink
fix ParentTracesInRealContextIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
MiccWan committed Apr 4, 2022
1 parent abcb91f commit ee1decc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbux-data/src/impl/indexes/ParentTracesInRealContextIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ export default class ParentTracesInRealContextIndex extends CollectionIndex {
*/
added: (contexts) => {
for (const context of contexts) {
const { parentTraceId, contextType } = context;
// skip await contexts
if (ExecutionContextType.is.Await(contextType)) {
const { parentTraceId, contextId } = context;
// skip empty contexts, e.g. `Await`s
if (this.dp.indexes.traces.byContext.getSize(contextId) === 0) {
continue;
}

Expand Down

0 comments on commit ee1decc

Please sign in to comment.