OpenCQRS provides a store provider for Cosmos DB using the SQL API.
You can use the IDomainService
interface to access the event-sourcing functionalities.
You can also use the ICosmosDataStore
interface to access Cosmos DB specific features.
OpenCQRS emits diagnostic events using System.Diagnostics
to help you monitor and troubleshoot your application.
Event | Tags |
---|---|
Cosmos Transactional Batch | - operation - streamId - aggregateId - cosmos.activityId - cosmos.statusCode - cosmos.errorMessage - cosmos.requestCharge - cosmos.count |
Cosmos Read Item | - operation - streamId - aggregateId - cosmos.activityId - cosmos.statusCode - cosmos.requestCharge |
Cosmos Feed Iterator | - operation - streamId - aggregateId - cosmos.activityId - cosmos.statusCode - cosmos.requestCharge - cosmos.count |
Concurrency Exception | - streamId - expectedEventSequence - latestEventSequence |
Exception | - operation - streamId |