Skip to content

Commit

Permalink
use telemetry 1.2.0 (redhat-developer#764)
Browse files Browse the repository at this point in the history
Signed-off-by: Andre Dietisheim <[email protected]>
  • Loading branch information
adietish committed Jun 24, 2024
1 parent 556541b commit 53be210
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,9 @@ test {
intellij {
version = ideaVersion //for a full list of Jetbrains IDEA releases please see https://www.jetbrains.com/intellij-repository/releases
pluginName = "Kubernetes by Red Hat"
plugins = ["yaml", "com.redhat.devtools.intellij.telemetry:${telemetryPluginVersion}" ]
// use '<git repo clone>/build/idea-sandbox/plugins/Telemetry by Red Hat' if working from source
// plugins = ["yaml", "com.redhat.devtools.intellij.telemetry:${telemetryPluginVersion}" ]
plugins = ["yaml", "/Users/adietish/Documents/jboss-workspaces/intellij-redhat-telemetry/build/idea-sandbox/plugins/Telemetry by Red Hat" ]
updateSinceUntilBuild = false
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
******************************************************************************/
package com.redhat.devtools.intellij.kubernetes.telemetry

import com.intellij.ide.plugins.PluginManager
import com.intellij.ide.plugins.PluginManagerCore
import com.redhat.devtools.intellij.common.validation.KubernetesResourceInfo
import com.redhat.devtools.intellij.common.validation.KubernetesTypeInfo
import com.redhat.devtools.intellij.kubernetes.model.resource.ResourceKind
Expand All @@ -29,7 +31,7 @@ object TelemetryService {
const val PROP_OPENSHIFT_VERSION = "openshift_version"

val instance: TelemetryMessageBuilder by lazy {
TelemetryMessageBuilder(TelemetryService::class.java.classLoader)
TelemetryMessageBuilder(PluginManager.getPluginByClass(javaClass))
}

fun sendTelemetry(resources: Collection<HasMetadata>, telemetry: TelemetryMessageBuilder.ActionMessage) {
Expand Down

0 comments on commit 53be210

Please sign in to comment.