Does NServiceBus v5.0 support performance counters?

I recently updated my small project from NServiceBus 4.6 to 5.0.1. After smoothing out the interface changes, I now exit at runtime with the message:

Fixing System.InvalidOperationException was unhandled Message: An unhandled exception of type "System.InvalidOperationException" occurred in mscorlib.dll Additional Information: The NServiceBus performance counter for Critical Time is not configured correctly. To fix this issue, run the Install-NServiceBusPerformanceCounters cmdlet.

I do not use performance counters in my code and should not install any additional components. I see the same issue with the "VideoStore.SqlServer" sample on the Particular GitHub page. Make a fresh pull, F5, ... and an arrow.

Is NServiceBus version 5 required to set its default counters instead of the opt-in approach for v4.x?

Edit: 2014-10-21 Using config.DisableFeature<CriticalTimeMonitoring>();

, I still couldn't get a sample to run (got the same error). At Ada's suggestion, I opened a ticket and will update this question when I hear from a Private Question.

+3


source to share


2 answers


In your configuration, you can disable this feature: config.DisableFeature<CriticalTimeMonitoring>();



+4


source




0


source







All Articles