MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / isEventCapturable

Function isEventCapturable

packages/cloud/src/TelemetryClient.ts:25–33  ·  view source on GitHub ↗
(eventName: TelemetryEventName)

Source from the content-addressed store, hash-verified

23 ) {}
24
25 protected isEventCapturable(eventName: TelemetryEventName): boolean {
26 if (!this.subscription) {
27 return true
28 }
29
30 return this.subscription.type === "include"
31 ? this.subscription.events.includes(eventName)
32 : !this.subscription.events.includes(eventName)
33 }
34
35 /**
36 * Determines if a specific property should be included in telemetry events

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected