Skip to content

Swallow exceptions from ObserveDurationAsync, but throw from Func input? #182

Closed Answered by sanych-sun
cscoon asked this question in Q&A
Discussion options

You must be logged in to vote

No. We do not have anything like this for now, but probably can add this as a extension method argument or even metric config. The first approach allow us to localize the changes, but last one looks more generic. But not sure if it makes sense.

@phnx47 what do you think? Is adding new metric family configuration (for any kind of metric metrics) to ignore any exceptions while observations is valuable? I mean suppress any exception that could appear inside Inc, Dec, etc methods. If we go this way we probably have to at least report the exception to diagnostics source.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@phnx47
Comment options

@phnx47
Comment options

Answer selected by phnx47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants