( config: Config, event: NextSpeakerCheckEvent, )
| 322 | } |
| 323 | |
| 324 | export function logNextSpeakerCheck( |
| 325 | config: Config, |
| 326 | event: NextSpeakerCheckEvent, |
| 327 | ): void { |
| 328 | ClearcutLogger.getInstance(config)?.logNextSpeakerCheck(event); |
| 329 | if (!isTelemetrySdkInitialized()) return; |
| 330 | |
| 331 | const attributes: LogAttributes = { |
| 332 | ...getCommonAttributes(config), |
| 333 | ...event, |
| 334 | 'event.name': EVENT_NEXT_SPEAKER_CHECK, |
| 335 | }; |
| 336 | |
| 337 | const logger = logs.getLogger(SERVICE_NAME); |
| 338 | const logRecord: LogRecord = { |
| 339 | body: `Next speaker check.`, |
| 340 | attributes, |
| 341 | }; |
| 342 | logger.emit(logRecord); |
| 343 | } |
| 344 | |
| 345 | export function logSlashCommand( |
| 346 | config: Config, |
no test coverage detected