Skip to content

Metric to monitor the nr of ConsumeMessageExceptions #431

@lailabougria

Description

@lailabougria

Describe the feature.

Is your feature related to a problem? Please describe.

The TransactionalSession currently immediately dispatches a control message when the database transaction commit is invoked. Depending on the duration of the database transaction, it may occur that the control message arrives before the transaction completes, meaning that we won't find the outbox record with the messages to dispatch. In such a case, the package throws a ConsumeMessageException and delays the control message (by sending a new one with a delayed delivery). When this occurs repeatedly, it's helpful to increase the CommitDelayIncrement. To that end, it would be helpful to expose a metric that measures specifically these exceptions for users to monitor.

Describe the requested feature

Describe alternatives you've considered

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions