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

Method flush

apps/hash-api/src/telemetry/telemetry.ts:205–211  ·  view source on GitHub ↗

Flush buffered events; call on graceful shutdown.

()

Source from the content-addressed store, hash-verified

203
204 /** Flush buffered events; call on graceful shutdown. */
205 async flush(): Promise<void> {
206 try {
207 await this.client?.flush();
208 } catch (error) {
209 logger.warn(`Could not flush telemetry client: ${error}`);
210 }
211 }
212}
213
214export const telemetry = new TelemetryService();

Callers 1

mainFunction · 0.45

Calls 1

warnMethod · 0.80

Tested by

no test coverage detected