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

[Backport to 5.5] Update Monitoring to support ingesting batched metrics messages with no errors (#4340) #4342

Merged
merged 1 commit into from
Aug 1, 2024

Conversation

johnsimons
Copy link
Member

@johnsimons johnsimons commented Aug 1, 2024

Symptoms

The ServiceControl.Monitoring instance fails to ingest metrics messages and moves them to the error queue. The error shown for the failed messages is the following:

System.ArgumentException: An item with the same key has already been added. Key: nservicebus.message_handler_types

Who's affected

Everyone using ServiceControl.Monitoring V5.5 and having endpoints sending Metrics data to ServiceControl.

Root cause

NServiceBus.Metrics.ServiceControl sends multiple metric messages in a single physical message or payload. This causes an issue when ServiceControl Monitoring tries to consume them with NServiceBus 9.1.0.

This PR adds a test to avoid a regression and upgrades ServiceControl to use NServiceBus 9.1.1.


Backport to release-5.5 of:

Related to:

…no errors (#4340)

* Add a test that verifies that Monitoring can ingest batched metrics messages with no errors

* Try to make the test fail in a reliable manner

* Update NServiceBus dependency to 9.1.1
@johnsimons johnsimons self-assigned this Aug 1, 2024
@johnsimons johnsimons changed the base branch from master to release-5.5 August 1, 2024 01:03
@johnsimons johnsimons merged commit d7a12c1 into release-5.5 Aug 1, 2024
23 checks passed
@johnsimons johnsimons deleted the john/backport branch August 1, 2024 01:17
@jpalac jpalac added this to the 5.5.1 milestone Aug 1, 2024
@jpalac jpalac added the Bug label Aug 1, 2024
@jpalac jpalac modified the milestones: 5.5.1, 5.5.2 Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants