M
Mountain
I want to implement a custom performance counter for monitoring errors
in my application. However, the correct rate is not exceptions per
second!
(If my app is throwing multiple exceptions per second, then the last
thing I need to be doing is writing custom performance counters!)
I want to implement a counter that has a period of 1 hour. What is the
right way (or best way) to do this? I figure out one way, but I had to
implement all the code and not use any of the methods in the
Diagnostics namespace (other than just setting the raw value of my
counter).
I don't think that is the right way to do it. Although all the
framework code seems to assume periodicity of 1 sec, I have a feeling I
should be able to use the framework methods and obtain rates per hour
-- I just need some help figuring out the way to go about it.
Thanks
in my application. However, the correct rate is not exceptions per
second!
(If my app is throwing multiple exceptions per second, then the last
thing I need to be doing is writing custom performance counters!)
I want to implement a counter that has a period of 1 hour. What is the
right way (or best way) to do this? I figure out one way, but I had to
implement all the code and not use any of the methods in the
Diagnostics namespace (other than just setting the raw value of my
counter).
I don't think that is the right way to do it. Although all the
framework code seems to assume periodicity of 1 sec, I have a feeling I
should be able to use the framework methods and obtain rates per hour
-- I just need some help figuring out the way to go about it.
Thanks