Skip to content

Commit

Permalink
refactor: increasing trace buffer instead of wait time
Browse files Browse the repository at this point in the history
  • Loading branch information
InesNi committed Jan 26, 2024
1 parent 14359e4 commit bc8c3bc
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ class OTelReporter {
if (this.playwrightReporter) {
await this.playwrightReporter.cleanup('playwright');
}
debug('Waiting for flush period to complete');
await new Promise((resolve) => setTimeout(resolve, 5000));
await this.traceConfig.shutDown();
return done();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,6 @@ class OTelTraceBase {
}

debug('Pending traces done');
debug('Waiting for flush period to complete');
await new Promise((resolve) => setTimeout(resolve, 5000));
}
}

Expand Down

0 comments on commit bc8c3bc

Please sign in to comment.