-
Notifications
You must be signed in to change notification settings - Fork 287
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
Control Document Quotas for QuickPulse #2425
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's talk through this and do another round of changes.
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
...ceCollector/PerformanceCollector/Implementation/QuickPulse/Helpers/QuickPulseQuotaTracker.cs
Outdated
Show resolved
Hide resolved
...Collector/PerformanceCollector/Implementation/QuickPulse/QuickPulseCollectionStateManager.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/QuickPulseTelemetryProcessor.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/QuickPulseTelemetryProcessor.cs
Show resolved
Hide resolved
...ollector/PerformanceCollector/Implementation/Service contract/CollectionConfigurationInfo.cs
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/QuickPulseTelemetryModule.cs
Outdated
Show resolved
Hide resolved
…com/microsoft/ApplicationInsights-dotnet into rambhatt/adjustable-document-quotas
…com/microsoft/ApplicationInsights-dotnet into rambhatt/adjustable-document-quotas
f6dfc7c
to
11fe028
Compare
WEB/Src/PerformanceCollector/Perf.Tests/QuickPulse/QuickPulseTelemetryModuleTests.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/Perf.Tests/QuickPulse/QuickPulseTelemetryModuleTests.cs
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
WEB/Src/PerformanceCollector/PerformanceCollector/CollectionConfiguration.cs
Outdated
Show resolved
Hide resolved
...anceCollector/PerformanceCollector/Implementation/Service contract/QuotaConfigurationInfo.cs
Outdated
Show resolved
Hide resolved
...anceCollector/PerformanceCollector/Implementation/Service contract/QuotaConfigurationInfo.cs
Outdated
Show resolved
Hide resolved
@@ -207,18 +205,24 @@ private void CreatePerformanceCounters(out CollectionConfigurationError[] errors | |||
CollectionConfigurationError[] localErrors = null; | |||
try | |||
{ | |||
Tuple<float, float, float, float, float> initialQuotas; | |||
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out initialQuotas); | |||
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out Tuple<float, float, float, float, float> initialQuotas); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's rename initialQuotas in order to make it clear that it comes from the previous quota. Maybe previousQuotas or something like that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The out var name.
...ceCollector/PerformanceCollector/Implementation/QuickPulse/Helpers/QuickPulseQuotaTracker.cs
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,22 @@ | |||
namespace Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.Service_contract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In C#, namespace segments are PascalCase with no underscores or other special symbols. This should be ServiceContract
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
old
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, it's not old. The namespace is still called Service_contract.
WEB/Src/PerformanceCollector/PerformanceCollector/QuickPulseTelemetryProcessor.cs
Show resolved
Hide resolved
@@ -0,0 +1,22 @@ | |||
namespace Microsoft.ApplicationInsights.Extensibility.PerfCounterCollector.Implementation.Service_contract |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, it's not old. The namespace is still called Service_contract.
@@ -207,18 +205,24 @@ private void CreatePerformanceCounters(out CollectionConfigurationError[] errors | |||
CollectionConfigurationError[] localErrors = null; | |||
try | |||
{ | |||
Tuple<float, float, float, float, float> initialQuotas; | |||
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out initialQuotas); | |||
previousQuotasByStreamId.TryGetValue(documentStreamInfo.Id, out Tuple<float, float, float, float, float> initialQuotas); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The out var name.
WEB/Src/PerformanceCollector/PerformanceCollector/QuickPulseTelemetryModule.cs
Show resolved
Hide resolved
…com/microsoft/ApplicationInsights-dotnet into rambhatt/adjustable-document-quotas
Please also update the Changelog under the VNext section. :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Please update changelog
Fix Issue # .
Changes
(Please provide a brief description of the changes here.)
Checklist
For significant contributions please make sure you have completed the following items:
The PR will trigger build, unit tests, and functional tests automatically. Please follow these instructions to build and test locally.
Notes for authors:
Notes for reviewers:
/AzurePipelines run
will queue all builds/AzurePipelines run <pipeline-name>
will queue a specific build