(records: TelemetryRecord[])
| 10 | } |
| 11 | |
| 12 | export function recordingTelemetry(records: TelemetryRecord[]): TelemetryClient { |
| 13 | return { |
| 14 | track: (event, properties) => { |
| 15 | records.push({ event, properties }); |
| 16 | }, |
| 17 | withContext: () => recordingTelemetry(records), |
| 18 | }; |
| 19 | } |
| 20 | |
| 21 | export function recordingContextTelemetry(records: TelemetryContextRecord[]): TelemetryClient { |
| 22 | return { |
no test coverage detected