<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to turn on log enrichment while maintaining json format in .NET? in Log Analytics</title>
    <link>https://community.dynatrace.com/t5/Log-Analytics/How-to-turn-on-log-enrichment-while-maintaining-json-format-in/m-p/299614#M1571</link>
    <description>&lt;P&gt;We have one agent installed in our Azure .NET web app, in the app service console log, the result description is in perfect json format.&lt;/P&gt;
&lt;P&gt;I went to One Agent settings and turned these on&lt;/P&gt;
&lt;P&gt;.NET - Trace/span context enrichment for logs [Opt-In]&lt;BR /&gt;.NET - Trace/span context enrichment for unstructured logs [Opt-In]&lt;BR /&gt;.NET - Trace/span context enrichment Framework Microsoft Logging Extensions&lt;/P&gt;
&lt;P&gt;I can then see&amp;nbsp;[!dt trace_id=,span_id=,trace_sampled=true] being added in my result description. Now my log has trace id and span id, but it is no longer a json format.&lt;/P&gt;
&lt;P&gt;I experimented a little, like leave only&amp;nbsp;.NET - Trace/span context enrichment for logs [Opt-In] on, I can see my log goes back to json format, but there is no trace id or span id injected.&lt;/P&gt;
&lt;P&gt;Anyone faced the same issue before?&lt;/P&gt;</description>
    <pubDate>Tue, 19 May 2026 06:31:49 GMT</pubDate>
    <dc:creator>ShaoHungYu</dc:creator>
    <dc:date>2026-05-19T06:31:49Z</dc:date>
    <item>
      <title>How to turn on log enrichment while maintaining json format in .NET?</title>
      <link>https://community.dynatrace.com/t5/Log-Analytics/How-to-turn-on-log-enrichment-while-maintaining-json-format-in/m-p/299614#M1571</link>
      <description>&lt;P&gt;We have one agent installed in our Azure .NET web app, in the app service console log, the result description is in perfect json format.&lt;/P&gt;
&lt;P&gt;I went to One Agent settings and turned these on&lt;/P&gt;
&lt;P&gt;.NET - Trace/span context enrichment for logs [Opt-In]&lt;BR /&gt;.NET - Trace/span context enrichment for unstructured logs [Opt-In]&lt;BR /&gt;.NET - Trace/span context enrichment Framework Microsoft Logging Extensions&lt;/P&gt;
&lt;P&gt;I can then see&amp;nbsp;[!dt trace_id=,span_id=,trace_sampled=true] being added in my result description. Now my log has trace id and span id, but it is no longer a json format.&lt;/P&gt;
&lt;P&gt;I experimented a little, like leave only&amp;nbsp;.NET - Trace/span context enrichment for logs [Opt-In] on, I can see my log goes back to json format, but there is no trace id or span id injected.&lt;/P&gt;
&lt;P&gt;Anyone faced the same issue before?&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2026 06:31:49 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Log-Analytics/How-to-turn-on-log-enrichment-while-maintaining-json-format-in/m-p/299614#M1571</guid>
      <dc:creator>ShaoHungYu</dc:creator>
      <dc:date>2026-05-19T06:31:49Z</dc:date>
    </item>
  </channel>
</rss>

