Akka.Persistence.Query: include more descriptive ToString()
values for all Offset
types
#6927
Milestone
ToString()
values for all Offset
types
#6927
Is your feature request related to a problem? Please describe.
I just had to write the following class in my own application that is making use of Akka.NET for EventSourcing and CQRS using Akka.Persistence.Query:
This is because the default
ToString()
values forOffset
aren't helpful - from one of my test logs:Describe the solution you'd like
Each
Offset
implementation should clearly log its value so users can plop thatOffset
directly into log statements without needing to filter through the underlying types. Only users with detailed knowledge about the internals of Akka.Persistence would know how to do this today.Describe alternatives you've considered
It might be worth just exposing a
long
value type on eachOffset
anyway to help make it easier to serialize / persist too, but that gets into icky territory if someone wants to start using stuff likeTimeUuid
s for ordering records inside the Akka.Persistence event journal - hence why theOffset
abstraction exists in the first place.Cleaning up the
ToString()
method for logging purposes makes the most sense.The text was updated successfully, but these errors were encountered: