MCPcopy Create free account
hub / github.com/Openpanel-dev/openpanel / shouldQueue

Method shouldQueue

packages/sdks/sdk/src/index.ts:96–107  ·  view source on GitHub ↗
(payload: TrackHandlerPayload)

Source from the content-addressed store, hash-verified

94 }
95
96 private shouldQueue(payload: TrackHandlerPayload): boolean {
97 if (this.options.disabled) {
98 return true;
99 }
100 if (this.options.waitForProfile && !this.profileId) {
101 return true;
102 }
103 if (payload.type === 'replay' && !this.sessionId) {
104 return true;
105 }
106 return false;
107 }
108
109 addQueue(payload: TrackHandlerPayload) {
110 if (payload.type === 'track') {

Callers 2

sendMethod · 0.95
flushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected