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

Function isEventCapturable

packages/telemetry/src/BaseTelemetryClient.ts:18–26  ·  view source on GitHub ↗
(eventName: TelemetryEventName)

Source from the content-addressed store, hash-verified

16 ) {}
17
18 protected isEventCapturable(eventName: TelemetryEventName): boolean {
19 if (!this.subscription) {
20 return true
21 }
22
23 return this.subscription.type === "include"
24 ? this.subscription.events.includes(eventName)
25 : !this.subscription.events.includes(eventName)
26 }
27
28 /**
29 * Determines if a specific property should be included in telemetry events

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected