-
Notifications
You must be signed in to change notification settings - Fork 0
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
Master to develop #44
Conversation
…ary (#37) * exptected script content * cs script generator * ps1 script writer
Timers are reset after not receiving pipeline completion for 2 seconds
# Conflicts: # src/NServiceBus.Metrics.PerformanceCounters.Tests/PerformanceCounterUpdaterTests.cs # src/NServiceBus.Metrics.PerformanceCounters/PerformanceCounterUpdater.cs # src/NServiceBus.Metrics.PerformanceCounters/PerformanceCountersFeature.cs # src/ScriptBuilder/CSharpCounterWriter.cs # src/ScriptBuilder/PowerShellCounterWriter.cs # src/ScriptBuilderTask.Tests/CSharpCodeGenerationTests.Generates.approved.cs # src/ScriptBuilderTask.Tests/PowershellCodeGenerationTests.Generates.approved.ps1
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.
Minor comment. Otherwise LGTM
@@ -46,5 +66,34 @@ public void Observe(ProbeContext context) | |||
|
|||
readonly PerformanceCountersCache cache; | |||
readonly Dictionary<string, CounterInstanceName?> legacyInstanceNameMap; | |||
readonly ConcurrentDictionary<CounterInstanceName, IPerformanceCounterInstance> expirable = new ConcurrentDictionary<CounterInstanceName, IPerformanceCounterInstance>(); |
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.
How about we change the name to resettable
? This would align with resetEvery
vairable name
Aside from this PR I think that we should obsolete the script generators before we release 2.0. |
This PR merges back
master
todevelop
bringing back resetting counters and all the fixes we did on1.*
. It needs to be carefully reviewed as it required a lot of work related to merging these two diverged streams of work.Details
The merge was quite demanding. The main aspect that took a lot of time was the updater component that is now being cleaned by a separate task. It required to start a cleaning task as there's no longer
.Update
that is periodically called by theMetrics
package.