-
Notifications
You must be signed in to change notification settings - Fork 818
Open
Description
Usecase:
c = Counter("errors_count")
@c.count_exceptions()
def foo(): # counter = 1
raise Exception()
@c.count_exceptions()
async def foo_async(): # counter still 1
await sleep(1)
raise Exception()
Quick search in project did nothing to me.
It would be cool if counter (and other objects) would handle this right out 5B7C of the box, especially if we're talking about metrics for web world.
FlavioCurella-minted, nicholaswold, nikicat, cakuki, Nothing4You and 3 more
Metadata
Metadata
Assignees
Labels
No labels