Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let all services report message_processing timings #941

Merged
merged 1 commit into from
Aug 24, 2023
Merged

Conversation

rngcntr
Copy link
Collaborator

@rngcntr rngcntr commented Aug 24, 2023

This PR fixes #940 by moving the metric from MultiOutputServiceAdapter to PrometheusDelegatingMessageHandler and removes the now obsolete message_processing_total metric.

Copy link
Contributor

@pkemkes pkemkes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

.ConfigureAwait(false);
}
await _publisher.PublishMessageAsync(message, token)
.ConfigureAwait(false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: This could probably move into the line above and then we could even remove the parantheses of the if, if we want to.

{
_messageProcessingTotal =
metricsFactory.CreateCounter("message_processing_total", "Message processing status total", false, "status");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: We should make sure to put this breaking change into the release notes, when releasing this. Someone might be using this metric.

@rngcntr rngcntr merged commit 86d9726 into master Aug 24, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NoOutputService should report message_processing metrics
3 participants