<?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 Re: Mobile App: MAUI auto instrument in Real User Monitoring</title>
    <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Mobile-App-MAUI-auto-instrument/m-p/262392#M6460</link>
    <description>&lt;P&gt;I don't have direct experience with the HttpClientFactory, but documentation shows how to create the HttpMessageHandler.&lt;/P&gt;&lt;P&gt;and in your documentation example about the usage of HttpClientFactory I can see the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builder.Services.AddHttpClient();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I would assume the following usage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builder.Services.AddHttpClient()
.ConfigureHttpMessageHandler(() =&amp;gt; { 
   return Agent.Instance.GetHttpMessageHandler();
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builder.Services.AddHttpClient()
.ConfigureHttpMessageHandlerBuilder((builder) =&amp;gt; { 
   builder.PrimaryHandler = Agent.Instance.GetHttpMessageHandler();
   builder.Build();
});​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory#configure-the-httpmessagehandler" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory#configure-the-httpmessagehandler&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Nov 2024 08:25:36 GMT</pubDate>
    <dc:creator>matthias_hochri</dc:creator>
    <dc:date>2024-11-14T08:25:36Z</dc:date>
    <item>
      <title>Mobile App: MAUI auto instrument</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Mobile-App-MAUI-auto-instrument/m-p/262223#M6453</link>
      <description>&lt;P&gt;Afternoon community,&lt;BR /&gt;&lt;BR /&gt;we currently host a mobile Maui app for which we'd like to implement auto instrumentation.&lt;BR /&gt;I think part of the auto-instrumentation is Step number 5 mentioned in the doc (&lt;A href="https://docs.dynatrace.com/docs/shortlink/maui#http-client" target="_self"&gt;&lt;EM&gt;Enabling automatic web request instrumentation )&lt;/EM&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The dev implementing this is using&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory" target="_self"&gt;&lt;SPAN&gt;&lt;SPAN class=""&gt;httpclient factory&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;which brings complexity in implementing the suggestion in Step 5.&lt;BR /&gt;Has anyone experienced such complexity and how did you solve this?&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 15:54:01 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Mobile-App-MAUI-auto-instrument/m-p/262223#M6453</guid>
      <dc:creator>y_buccellato</dc:creator>
      <dc:date>2024-11-12T15:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Mobile App: MAUI auto instrument</title>
      <link>https://community.dynatrace.com/t5/Real-User-Monitoring/Mobile-App-MAUI-auto-instrument/m-p/262392#M6460</link>
      <description>&lt;P&gt;I don't have direct experience with the HttpClientFactory, but documentation shows how to create the HttpMessageHandler.&lt;/P&gt;&lt;P&gt;and in your documentation example about the usage of HttpClientFactory I can see the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builder.Services.AddHttpClient();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I would assume the following usage:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builder.Services.AddHttpClient()
.ConfigureHttpMessageHandler(() =&amp;gt; { 
   return Agent.Instance.GetHttpMessageHandler();
});&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;builder.Services.AddHttpClient()
.ConfigureHttpMessageHandlerBuilder((builder) =&amp;gt; { 
   builder.PrimaryHandler = Agent.Instance.GetHttpMessageHandler();
   builder.Build();
});​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See&amp;nbsp;&lt;A href="https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory#configure-the-httpmessagehandler" target="_blank" rel="noopener"&gt;https://learn.microsoft.com/en-us/dotnet/core/extensions/httpclient-factory#configure-the-httpmessagehandler&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 08:25:36 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Real-User-Monitoring/Mobile-App-MAUI-auto-instrument/m-p/262392#M6460</guid>
      <dc:creator>matthias_hochri</dc:creator>
      <dc:date>2024-11-14T08:25:36Z</dc:date>
    </item>
  </channel>
</rss>

