MCPcopy Create free account
hub / github.com/anus-dev/ANUS / logNextSpeakerCheck

Function logNextSpeakerCheck

packages/core/src/telemetry/loggers.ts:324–343  ·  view source on GitHub ↗
(
  config: Config,
  event: NextSpeakerCheckEvent,
)

Source from the content-addressed store, hash-verified

322}
323
324export 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
345export function logSlashCommand(
346 config: Config,

Callers 1

sendMessageStreamMethod · 0.85

Calls 4

logNextSpeakerCheckMethod · 0.80
getCommonAttributesFunction · 0.70
getInstanceMethod · 0.45

Tested by

no test coverage detected