Open JasonLooney opened 10 months ago
Hi Jason,
TextException
is this class from Serilog.Formatting.Compact.Reader.
On the client side, exceptions are captured using ToString()
, and the result ends up wrapped in a TextException
server-side.
The only way you should see TextException
appear anywhere is some code going to the exception's Type
directly; most Serilog sinks etc. won't do that, and instead use ToString()
, which for these exceptions will show the original type/stack trace/message.
My guess is there's something in the App Insights sink responsible for this; if you spot it and need help figuring out a workaround, let me know.
Hope this helps, Nick
We're using these libraries to send log messages from a Blazor WebAssembly app up to an ASP.NET server in Azure, which in turn logs to ApplicationInsights. However, all exceptions coming from the client are showing up as the type
TextException
in the logs and are missing the exception details.How can we fix this?
On the client, our logger is configured like so:
And on the server: