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

OpenTelemetry metrics: Add a metric counter for total deduplicated messages #7225

Open
mauroservienti opened this issue Nov 21, 2024 · 0 comments

Comments

@mauroservienti
Copy link
Member

Describe the suggested improvement

Is your improvement related to a problem? Please describe.

Currently, NServiceBus reports the following metric counters:

  • Total fetched messages
  • Total number of messages successfully processed
  • Total number of messages where processing failed

As of today, there is a mismatch between the number of fetched messages and the sum of successes and failures because we do not count deduplicated messages.

Describe the suggested solution

Math says that number of fetched messages should be the sum of "failure + success + deduplicated messages". Hence, exposing a counter for the number of deduplicated messages would be convenient. Note that we already add to the OpenTelemetry activity a tag signaling the message is a duplicate.

Additional Context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant