Skip to content

Commit

Permalink
Increase timeout startup event to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
hansott authored Mar 5, 2025
1 parent ba17528 commit b3d7cef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/agent/Agent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,10 @@ export class Agent {
time: Date.now(),
agent: this.getAgentInfo(),
},
this.timeoutInMS
// We don't use `this.timeoutInMS` for startup event
// Since Node.js is single thread, the HTTP request is fired before other imports are required
// It might take a long time before our code resumes
30 * 1000
);

this.checkForReportingAPIError(result);
Expand Down

0 comments on commit b3d7cef

Please sign in to comment.