Eventuous / eventuous

Event Sourcing library for .NET
https://eventuous.dev
Apache License 2.0
458 stars 73 forks source link

Added diagnostics for the checkpoint commit handler #172

Closed alexeyzimarev closed 1 year ago

alexeyzimarev commented 1 year ago

This PR adds a few diagnostic events to the checkpoint commit handler and position sequence to diagnose the gap detection and commits.

When adding Eventuous internal logs using AddEventuousLogs, the following log items can appear when using a partitioned subscription:

Debug - 0 - eventuous - Gap detected in checkpoint between 55:55 and 58:58

There, the first number is the internal sequence, which always starts from zero, and the second number is the actual position. The gap detection only looks at the sequence.