jonsequitur / Its.Log

Get information out of your code at runtime to send it to log files, perf counters, consoles, services, sensors. Maximum flexibility and maintainability, minimum code.
Other
13 stars 10 forks source link

Telemetry support #13

Closed jonsequitur closed 9 years ago

jonsequitur commented 9 years ago

This adds telemetry support. The idea is that you can get a pass/fail signal via the Log.Telemetry() observable using the following:

using (var activity = Log.With<Telemetry>().Enter(() => { })
{
    // do something
    activity.MarkAsSuccessful(); // if we don't reach this line, the telemetry event will indicate failure.
}