Skip to content

Commit

Permalink
change to telemetry and to pom
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Oct 25, 2024
1 parent b796582 commit 3c543f0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,13 @@ public void postMetrics() {
Analytics.track(Metric.ZINGG_VERSION, "0.4.1-SNAPSHOT", collectMetrics);
Analytics.trackEnvProp(Metric.DATABRICKS_RUNTIME_VERSION, collectMetrics);
Analytics.trackEnvProp(Metric.DB_INSTANCE_TYPE, collectMetrics);
Analytics.trackEnvProp(Metric.JAVA_HOME, collectMetrics);
Analytics.trackEnvProp(Metric.JAVA_VERSION, collectMetrics);
Analytics.trackEnvProp(Metric.OS_ARCH, collectMetrics);
Analytics.trackEnvProp(Metric.OS_NAME, collectMetrics);
//Analytics.trackEnvProp(Metric.JAVA_HOME, collectMetrics);
//Analytics.trackEnvProp(Metric.JAVA_VERSION, collectMetrics);
//Analytics.trackEnvProp(Metric.OS_ARCH, collectMetrics);
//Analytics.trackEnvProp(Metric.OS_NAME, collectMetrics);
//Analytics.trackEnvProp(Metric.USER_NAME, collectMetrics);
//Analytics.trackEnvProp(Metric.USER_HOME, collectMetrics);
Analytics.trackDomain(Metric.DOMAIN, collectMetrics);
Analytics.track(Metric.ZINGG_VERSION, "0.4.1-SNAPSHOT", collectMetrics);
Analytics.postEvent(zinggOption.getName(), collectMetrics);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ public static void track(String metricName, String metricValue, boolean collectM
public static void trackEnvProp(String metricName, boolean collectMetrics) {
if (collectMetrics) {
try{
getMetrics().put(metricName, System.getProperty(metricName));
if (System.getProperty(metricName) != null) {
getMetrics().put(metricName, "true");
}
}
catch(Exception e){
getMetrics().put(metricName, "Exception " + e.getMessage());
Expand Down
2 changes: 1 addition & 1 deletion common/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<packaging>pom</packaging>
<modules>
<module>infra</module>
<module>core</module>
<module>client</module>
<module>core</module>
</modules>
</project>

0 comments on commit 3c543f0

Please sign in to comment.