diff --git a/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt b/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt index 0869c36fb2d..61a014d037b 100644 --- a/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt +++ b/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt @@ -18,5 +18,13 @@ open class KotlinFUSLogger { fun log(group: FUSEventGroups, event: String) { FUCounterUsageLogger.getInstance().logEvent(group.GROUP_ID, event, context) } + + fun log(group: FUSEventGroups, event: String, eventData: Map) { + val localContext = context.copy() + for (entry in eventData) { + localContext.addData(entry.key, entry.value) + } + FUCounterUsageLogger.getInstance().logEvent(group.GROUP_ID, event, localContext) + } } } \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.182 b/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.182 index 8c990670d21..92274468781 100644 --- a/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.182 +++ b/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.182 @@ -10,5 +10,9 @@ open class KotlinFUSLogger { fun log(group: FUSEventGroups, event: String) { // Not whitelisted for 182 } + + fun log(group: FUSEventGroups, event: String, eventData: Map) { + // Not whitelisted for 182 + } } } \ No newline at end of file diff --git a/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.183 b/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.183 index f31daac3c0f..b0093b0b02e 100644 --- a/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.183 +++ b/idea/src/org/jetbrains/kotlin/idea/statistics/KotlinFUSLogger.kt.183 @@ -10,5 +10,9 @@ open class KotlinFUSLogger { fun log(group: FUSEventGroups, event: String) { // Not whitelisted for 183 } + + fun log(group: FUSEventGroups, event: String, eventData: Map) { + // Not whitelisted for 183 + } } } \ No newline at end of file