Correctly support scalar and other Serilog log property values when parsing to string
#256
Labels
application-insights
All issues related to Azure Application Insights
bug
Something isn't working
enhancement
New feature or request
good first issue
Good for newcomers
serilog
All issues related to Serilog
Milestone
Describe the bug
When converting the Serilog values to Azure Application Insights models, we have a
.ToDecentString
method that takes in the Serilog log property value and returns the simple string representation of that value.This works for simple values, but more complex values (like JSON values), this will result in escaped characters.
To Reproduce
Add a telemetry context to any logging extension method with a JSON value.
Expected behavior
The end-result Azure Application Insights telemetry value should contain the original JSON value (unescaped).
Additional context
The text was updated successfully, but these errors were encountered: