MCPcopy Create free account
hub / github.com/hashintel/hash / emitPage

Method emitPage

apps/hash-api/src/telemetry/telemetry.ts:127–144  ·  view source on GitHub ↗
(
    envelope: EventEnvelope,
    name: string,
    properties: Record<string, unknown>,
  )

Source from the content-addressed store, hash-verified

125 }
126
127 private emitPage(
128 envelope: EventEnvelope,
129 name: string,
130 properties: Record<string, unknown>,
131 ): void {
132 const client = this.getClient();
133 if (!client || (!envelope.userId && !envelope.anonymousId)) {
134 return;
135 }
136 client.page({
137 userId: envelope.userId,
138 anonymousId: envelope.anonymousId,
139 name,
140 properties: { ...envelope.baseProperties, ...properties },
141 context: envelope.context,
142 timestamp: envelope.timestamp,
143 } as unknown as RudderAnalytics.PageParams);
144 }
145
146 // ─── Public, envelope-free API ───
147

Callers 1

trackFromClientMethod · 0.95

Calls 1

getClientMethod · 0.95

Tested by

no test coverage detected