-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exceptions do not contain the rendered message #201
Comments
Hi Chris, I think you can quite easily adjust the TraceTelemetryConverter like:
and then
should do the trick. |
Thanks! Would it be possible for you to include it by default? I think it makes sense to always include the rendered message (for simpler search and display in AI), and as I understand it, it's a non-breaking change. |
Also, doing this by defaults avoids the caveat that with your workaround, I rely on the implementation detail that |
Hi @cmeeren . Actually I am just a passerby, that had the same issue as you. |
Description
When logging exceptions, the sink sends the message template, but not the actual rendered message.
Reproduction
Config:
Log statement:
The following is sent to AI:
Expected behavior
Just like traces, the data send for exceptions contains the actual rendered log message (above,
Starting retry 1 of 3
) so that it can be displayed in AI.If there is no standard field for this, a custom property (e.g.
RenderedMessage
, or another suitable name) is fine with me and would solve all my problems.Relevant package, tooling and runtime versions
Using Serilog.Sinks.ApplicationInsights 4.0.0 on .NET 6.
The text was updated successfully, but these errors were encountered: