DataDog / datadog-aas-extension

Datadog Azure App Services Site Extension
Apache License 2.0
9 stars 12 forks source link

"}" is missing at the end of logs when datadog extension on azure app service collects logs #211

Closed clgcn closed 1 year ago

clgcn commented 1 year ago

Hi all,

We are using datadog extension on azure app service to collect logs by agentless APM, it is missing "}" at the end of logs when the logs is deeply nested, the problem happen when json nested more than 3 layers.

The debug process as below:

  1. I try to send logs to datadog by agentless serilog sink, the logs don't missing "}" at the end, the datadog give me a MessageTemplate event attributes, it doesn't missing "}" in this event attribute.
  2. I try to write logs to Azure console, i check it in azure app service console , it doesn't missing "}" also.
andrewlock commented 1 year ago

Hi @clgcn - could you please clarify a couple of points:

Thanks!

clgcn commented 1 year ago

It is cause by the serilog, not datadog extension, thanks for you reply. https://github.com/serilog/serilog-sinks-file/issues/102