Skip to content

Commit b3d7cef

Browse files
authored
Increase timeout startup event to 30s
1 parent ba17528 commit b3d7cef

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/agent/Agent.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,10 @@ export class Agent {
118118
time: Date.now(),
119119
agent: this.getAgentInfo(),
120120
},
121-
this.timeoutInMS
121+
// We don't use `this.timeoutInMS` for startup event
122+
// Since Node.js is single thread, the HTTP request is fired before other imports are required
123+
// It might take a long time before our code resumes
124+
30 * 1000
122125
);
123126

124127
this.checkForReportingAPIError(result);

0 commit comments

Comments
 (0)