How to stop the ObservableGauge callback function keeps firing #288
Unanswered
candrewtemenoscom
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am using the following code on my actionfilter onResultExecuted function to send metric to my opentelemetry endpoints. I noticed that the callback function kept invoking when I set a breakpoint on it. May I know if it is normal even though there is no more request to the action decorated with the actionfilter attribute after the initial call? If it is not normal, how to stop the observable gauge callback from invoking? Thank you for your help.
meter.CreateObservableGauge(requestProcessingMetricName, () => {
return new Measurement(_requestProcessingTime, tags);
});
Beta Was this translation helpful? Give feedback.
All reactions