Eveneum: WriteException: Message isn't clear on what went wrong
I’m using Eveneum in Azure and have noticed that you can’t really tell what has gone wrong when a WriteException occurs via Application Insights.
Example of a WriteException
| Event time | 12/10/2020, 11:25:25 AM (Local time) |
|---|---|
| Message | Exception of type ‘Eveneum.WriteException’ was thrown. |
| Exception type | Eveneum.WriteException |
| Failed method | Eveneum.EventStore+<WriteToStream>d__25.MoveNext |
| Severity level | Error |
| Telemetry type | exception |
| Problem Id | Eveneum.WriteException at Eveneum.EventStore+<WriteToStream>d__25.MoveNext |
| Assembly | Eveneum, Version=4.6.0.0, Culture=neutral, PublicKeyToken=null |
In contrast here is an example of an OptimisticConcurrencyException where the Message for each exception of this type clearly indicates the problem.
| Event time | 12/10/2020, 11:25:27 AM (Local time) |
|---|---|
| Message | Expected stream ‘Removed stream id’ to have version 190 but was 191. |
| Exception type | Eveneum.OptimisticConcurrencyException |
| Failed method | Eveneum.EventStore+<WriteToStream>d__25.MoveNext |
| Severity level | Error |
| Telemetry type | exception |
| Problem Id | Eveneum.OptimisticConcurrencyException at Eveneum.EventStore+<WriteToStream>d__25.MoveNext |
| Assembly | Eveneum, Version=4.6.0.0, Culture=neutral, PublicKeyToken=null |
I’ve gone through the Application Insights logs and I can’t find the StatusCode of the WriteException or a more descriptive Message anywhere.
Am I blind, or is something going wrong for these exceptions?
Note: I’d like to tell you more about the circumstances in which this WriteException occurs, but sadly that’s what I’m trying to figure out 😅
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 15 (15 by maintainers)
Hi, this is just to add extra properties for any logs for CosmosException. No particular reason, just wanted to piggy back on the work for the other initializer.
In some of my projects I’m using Cosmos SDK for persisting projections, and this initializer may be handy there as well.
On Wed, 30 Dec 2020, 18:32 ThomasVandenbon, notifications@github.com wrote: