You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't really recommend my method or codetiming (main benefit - someone else maintains it). But usually, when I time something, I want to log it, not just send metrics.
I often want to decorate functions with
timer_decorator
, but want to provide different tags depending on the returned result or error.What if we added
on_return
andon_error
transform functions with defaults:These would get called here after the function has completed:
markus/src/markus/main.py
Line 515 in a3a5db6
The text was updated successfully, but these errors were encountered: