IJ-MR-178750 JCP-710 Implement first version of JCP AI analytics sender

(cherry picked from commit 3c42739b57ae734cf070d362f4c13bc35e4f42fa)

IJ-MR-180115

GitOrigin-RevId: 290fd315b60c82f2c16e00cb427e2a716b5a5703
This commit is contained in:
Kamil Doległo
2025-10-25 00:56:37 +02:00
committed by intellij-monorepo-bot
parent 2faadb3f2f
commit 04017e45a3

View File

@@ -39,6 +39,11 @@ class MLEventLoggerProvider : StatisticsEventLoggerProvider(
return isRecordEnabled() && StatisticsUploadAssistant.isSendAllowed()
}
override fun isLoggingAlwaysActive(): Boolean {
return true // necessary for JCP AI analytics, otherwise the events from this logger are not forwarded to [statistic.eventLog.externalListenerProvider]
// also take a look at [com.intellij.ml.llm.core.statistics.fus.jcp.JcpEventsInterceptor]
}
companion object {
const val ML_RECORDER_ID = "ML"
}