(event: string, properties: Record<string, unknown> = {})
| 117 | } |
| 118 | |
| 119 | capture(event: string, properties: Record<string, unknown> = {}) { |
| 120 | if (!this.enabled || !this.client) return; |
| 121 | try { |
| 122 | this.client.capture({ |
| 123 | distinctId: this.distinctId, |
| 124 | event, |
| 125 | properties: { ...this.superProps, ...properties }, |
| 126 | }); |
| 127 | } catch { |
| 128 | /* telemetry must never throw */ |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | async shutdown() { |
| 133 | if (!this.enabled || !this.client) return; |
no outgoing calls
no test coverage detected