Skip to content

Commit 28eee6f

Browse files
Track exceptions in separate Analytics project
Track all exceptions from CLI in a separate analytics project. Also track the result of `tns error-reporting enable/disable` in the same project where the exceptions are tracked. Update common-lib where the following changes had been applied: Allow tracking exceptions in a different Analytics project. In case the specified CLI wants to track exceptions to a separeate project, it can do it by setting the new property in staticConfig - `ANALYTICS_EXCEPTIONS_API_KEY`. Allow tracking the result of `tns error-reporting enable/disable` to the same project where exceptions tracking is sent. Speed up check if current Analytics request is sent - we check on 1000ms, while in fact it takes between 150 and 400ms. So make the check on 100ms.
1 parent f0dfab2 commit 28eee6f

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export class StaticConfig extends StaticConfigBase implements IStaticConfig {
2424
public CLIENT_NAME = "tns";
2525
public CLIENT_NAME_ALIAS = "NativeScript";
2626
public ANALYTICS_API_KEY = "5752dabccfc54c4ab82aea9626b7338e";
27+
public ANALYTICS_EXCEPTIONS_API_KEY = "35478fe7de68431399e96212540a3d5d";
2728
public TRACK_FEATURE_USAGE_SETTING_NAME = "TrackFeatureUsage";
2829
public ERROR_REPORT_SETTING_NAME = "TrackExceptions";
2930
public ANALYTICS_INSTALLATION_ID_SETTING_NAME = "AnalyticsInstallationID";

0 commit comments

Comments
 (0)