Skip to content

Commit

Permalink
fix telemetry with wrong metric names
Browse files Browse the repository at this point in the history
  • Loading branch information
sonalgoyal committed Jan 5, 2025
1 parent cd50ead commit 58846a1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,10 +123,11 @@ private static void sendEvents(String param) {
uri = builder.build();
URL url = uri.toURL();
String response = executePostRequest(url.toString(), param);
LOG.warn("Analytics event " + response);
} catch (IOException | URISyntaxException e) {
e.printStackTrace();
}
LOG.debug("Event tracked.");
LOG.warn("Event tracked.");
}

private static String executePostRequest(String targetURL, String urlParameters) {
Expand Down
8 changes: 4 additions & 4 deletions common/core/src/main/java/zingg/common/core/util/Metric.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public class Metric {
public static final String ZINGG_VERSION = "zingg_version";
public static final String DATABRICKS_RUNTIME_VERSION = "DATABRICKS_RUNTIME_VERSION";
public static final String DB_INSTANCE_TYPE = "DB_INSTANCE_TYPE";
public static final String JAVA_HOME = "java.home";
public static final String JAVA_VERSION = "java.version";
public static final String OS_ARCH = "os.arch";
public static final String OS_NAME = "os.name";
public static final String JAVA_HOME = "java_home";
public static final String JAVA_VERSION = "java_version";
public static final String OS_ARCH = "os_arch";
public static final String OS_NAME = "os_name";
public static final String DOMAIN = "domain";
//public static final String USER_NAME = "user.name";
//public static final String USER_HOME = "user.home";
Expand Down
2 changes: 1 addition & 1 deletion log4j2.properties
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ logger.breeze.level = warn
logger.zingg.name = zingg
logger.zingg.level = info
logger.zingg_analytics.name = zingg.common.core.util.Analytics
logger.zingg_analytics.level = off
logger.zingg_analytics.level = off
logger.codegen.name = org.apache.spark.sql.catalyst.expressions
logger.codegen.level = OFF
logger.codehaus.name = org.codehaus
Expand Down

0 comments on commit 58846a1

Please sign in to comment.