Closed sandreas closed 2 years ago
Hi @sandreas! I think this would be really cool; I'm not really intending to expand this library though - the goal currently is to keep it ultra-simple.
I'd be really happy to see a new library (built out of a fork of this one, if you would like to), that reimagined timings for Serilog as a more sophisticated system for these kinds of operations.
If you're keen to give it a go, I'd also be happy to link it from here. Let me know if so :-)
Thank you for the quick feedback.
I'm not really intending to expand this library though - the goal currently is to keep it ultra-simple.
Perfectly fine.
I'd be really happy to see a new library (built out of a fork of this one, if you would like to), that reimagined timings for Serilog as a more sophisticated system for these kinds of operations.
Me, too.
If you're keen to give it a go, I'd also be happy to link it from here. Let me know if so :-)
I would love to, but unfortunately there is no time left :-) I thought that these two extensions would be low hangng fruits, since they would only be a little addition to op.Complete
, but if this is not the case, I'll accept that.
Since this will not be implemented, should I close this issue?
Thanks @sandreas 👍
What do you think about adding
Explanation (in Code):
Now, if the operation takes less than 5 seconds, NOTHING is logged, because of the second parameter in
Operation.ExceedanceReport
. This config produces aWarning
, ONLY if the whole process takes more than 5 seconds.The checkpoints result in log entries similar to the existing ones via
using ...
, but make out a series of timed events:Advantages:
using
statements to accomplish thatExceedanceReport
you could accomplish that easily by adding a warning to your logs, if a database query takes an ususual time or an API does not respond in a specific timespanWhat do you think?