Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change Statsbeat long metrics interval #924

Merged
merged 1 commit into from Mar 17, 2022

Conversation

hectorhdzg
Copy link
Member

Other network errors are being triggered outside of restricted network environment disabling the feature.

@@ -17,7 +17,7 @@ class Statsbeat {
public static NON_EU_CONNECTION_STRING = "InstrumentationKey=c4a29126-a7cb-47e5-b348-11414998b11e;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com";
public static EU_CONNECTION_STRING = "InstrumentationKey=7dc56bab-3c0c-4e9f-9ebb-d1acadee8d0f;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com";
public static STATS_COLLECTION_SHORT_INTERVAL: number = 900000; // 15 minutes
public static STATS_COLLECTION_LONG_INTERVAL: number = 1440000; // 1 day
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it was every 24 mins before? wow.

@hectorhdzg hectorhdzg merged commit 3d1438b into develop Mar 17, 2022
@@ -17,7 +17,7 @@ class Statsbeat {
public static NON_EU_CONNECTION_STRING = "InstrumentationKey=c4a29126-a7cb-47e5-b348-11414998b11e;IngestionEndpoint=https://westus-0.in.applicationinsights.azure.com";
public static EU_CONNECTION_STRING = "InstrumentationKey=7dc56bab-3c0c-4e9f-9ebb-d1acadee8d0f;IngestionEndpoint=https://westeurope-5.in.applicationinsights.azure.com";
public static STATS_COLLECTION_SHORT_INTERVAL: number = 900000; // 15 minutes
public static STATS_COLLECTION_LONG_INTERVAL: number = 1440000; // 1 day
public static STATS_COLLECTION_LONG_INTERVAL: number = 86400000; // 1 day
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After being burnt by similar issues a few times, I made it practice to name the variable with proper suffix. It helped PRs catch any issues quickly as well. Eg: STATS_COLLECTION_LONG_INTERVAL_MILLISEC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants