<?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 Xamarin Forms Network Requests Automatic Instrumentation and Tracking in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721167#M2442</link>
    <description>&lt;P&gt;I am trying to instrument a Xamarin Forms app with the following configuration:.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;var config = AppDynamics.Agent.AgentConfiguration.Create("&amp;lt;EUM_APP_KEY&amp;gt;");
config.CollectorURL = "http://&amp;lt;IP_Address&amp;gt;:7001";
config.CrashReportingEnabled = true;
config.ScreenshotsEnabled = true;
config.LoggingLevel = AppDynamics.Agent.LoggingLevel.All;
AppDynamics.Agent.Instrumentation.EnableAggregateExceptionHandling = true;
AppDynamics.Agent.Instrumentation.InitWithConfiguration(config);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the documentation, it is stated that: &lt;FONT color="#003366"&gt;T&lt;SPAN&gt;he Xamarin Agent does not support automatic instrumentation for network requests made with any library. You will need to manually instrument HTTP network requests regardless of what library is used.&amp;nbsp;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/get-more-information-about-mobile-rum/mobile-rum-supported-environments#id-.MobileRUMSupportedEnvironmentsv23.4-XamarinAgent" target="_blank" rel="noopener nofollow noreferrer"&gt;Mobile RUM Supported Environments (appdynamics.com)&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Yet, in these links&amp;nbsp;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/instrument-xamarin-applications/customize-the-xamarin-instrumentation#id-.CustomizetheXamarinInstrumentationv23.2-automatic-page-tracking" target="_self" rel="nofollow noopener noreferrer"&gt;Customize the Xamarin Instrumentation (appdynamics.com)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/instrument-xamarin-applications#id-.InstrumentXamarinApplicationsv23.1-automatic-instrumentation" target="_blank" rel="noopener nofollow noreferrer"&gt;Instrument Xamarin Applications (appdynamics.com)&lt;/A&gt; I see that I can use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;AppDynamics.Agent.AutoInstrument.Fody&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;package to automatically instrument the network requests. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to follow the approach of automatic instrumentation using both&amp;nbsp;&lt;STRONG&gt;AppDynamics.Agent&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;AppDynamics.Agent.AutoInstrument.Fody&lt;/STRONG&gt;&amp;nbsp;packages as per the docs, but I get the below error when&amp;nbsp;&lt;SPAN&gt;building the project&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;MSBUILD : error : Fody: An unhandled exception occurred:
    MSBUILD : error : Exception:
    MSBUILD : error : Failed to execute weaver /Users/username/.nuget/packages/appdynamics.agent.autoinstrument.fody/2023.12.0/build/../weaver/AppDynamics.Agent.AutoInstrument.Fody.dll
    MSBUILD : error : Type:
    MSBUILD : error : System.Exception
    MSBUILD : error : StackTrace:
    MSBUILD : error :   at InnerWeaver.ExecuteWeavers () [0x0015a] in C:\projects\fody\FodyIsolated\InnerWeaver.cs:222
    MSBUILD : error :   at InnerWeaver.Execute () [0x000fe] in C:\projects\fody\FodyIsolated\InnerWeaver.cs:112
    MSBUILD : error : Source:
    MSBUILD : error : FodyIsolated
    MSBUILD : error : TargetSite:
    MSBUILD : error : Void ExecuteWeavers()
    MSBUILD : error : Sequence contains more than one matching element
    MSBUILD : error : Type:
    MSBUILD : error : System.InvalidOperationException
    MSBUILD : error : StackTrace:
    MSBUILD : error :   at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00045] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/Single.cs:71
    MSBUILD : error :   at AppDynamics.Agent.AutoInstrument.Fody.ImportedReferences.LoadTypes () [0x000f1] in /opt/buildAgent/work/2ab48d427bca2ab0/sdk/AppDynamics.Agent.AutoInstrument.Fody/ImportedReferences.cs:117
    MSBUILD : error :   at AppDynamics.Agent.AutoInstrument.Fody.ImportedReferences..ctor (ModuleWeaver weaver) [0x0000d] in /opt/buildAgent/work/2ab48d427bca2ab0/sdk/AppDynamics.Agent.AutoInstrument.Fody/ImportedReferences.cs:90
    MSBUILD : error :   at ModuleWeaver.Execute () [0x00000] in /opt/buildAgent/work/2ab48d427bca2ab0/sdk/AppDynamics.Agent.AutoInstrument.Fody/ModuleWeaver.cs:17
    MSBUILD : error :   at InnerWeaver.ExecuteWeavers () [0x000b7] in C:\projects\fody\FodyIsolated\InnerWeaver.cs:204
    MSBUILD : error : Source:
    MSBUILD : error : System.Core
    MSBUILD : error : TargetSite:
    MSBUILD : error : Mono.Cecil.MethodDefinition Single[MethodDefinition](System.Collections.Generic.IEnumerable`1[Mono.Cecil.MethodDefinition], System.Func`2[Mono.Cecil.MethodDefinition,System.Boolean])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Any help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2024 13:21:37 GMT</pubDate>
    <dc:creator>Osama_Abbas</dc:creator>
    <dc:date>2024-04-04T13:21:37Z</dc:date>
    <item>
      <title>Xamarin Forms Network Requests Automatic Instrumentation and Tracking</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721167#M2442</link>
      <description>&lt;P&gt;I am trying to instrument a Xamarin Forms app with the following configuration:.&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;var config = AppDynamics.Agent.AgentConfiguration.Create("&amp;lt;EUM_APP_KEY&amp;gt;");
config.CollectorURL = "http://&amp;lt;IP_Address&amp;gt;:7001";
config.CrashReportingEnabled = true;
config.ScreenshotsEnabled = true;
config.LoggingLevel = AppDynamics.Agent.LoggingLevel.All;
AppDynamics.Agent.Instrumentation.EnableAggregateExceptionHandling = true;
AppDynamics.Agent.Instrumentation.InitWithConfiguration(config);&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In the documentation, it is stated that: &lt;FONT color="#003366"&gt;T&lt;SPAN&gt;he Xamarin Agent does not support automatic instrumentation for network requests made with any library. You will need to manually instrument HTTP network requests regardless of what library is used.&amp;nbsp;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/get-more-information-about-mobile-rum/mobile-rum-supported-environments#id-.MobileRUMSupportedEnvironmentsv23.4-XamarinAgent" target="_blank" rel="noopener nofollow noreferrer"&gt;Mobile RUM Supported Environments (appdynamics.com)&lt;/A&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Yet, in these links&amp;nbsp;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/instrument-xamarin-applications/customize-the-xamarin-instrumentation#id-.CustomizetheXamarinInstrumentationv23.2-automatic-page-tracking" target="_self" rel="nofollow noopener noreferrer"&gt;Customize the Xamarin Instrumentation (appdynamics.com)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://docs.appdynamics.com/appd/23.x/latest/en/end-user-monitoring/mobile-real-user-monitoring/instrument-xamarin-applications#id-.InstrumentXamarinApplicationsv23.1-automatic-instrumentation" target="_blank" rel="noopener nofollow noreferrer"&gt;Instrument Xamarin Applications (appdynamics.com)&lt;/A&gt; I see that I can use&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;AppDynamics.Agent.AutoInstrument.Fody&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;package to automatically instrument the network requests. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried to follow the approach of automatic instrumentation using both&amp;nbsp;&lt;STRONG&gt;AppDynamics.Agent&lt;/STRONG&gt;&amp;nbsp;and&amp;nbsp;&lt;STRONG&gt;AppDynamics.Agent.AutoInstrument.Fody&lt;/STRONG&gt;&amp;nbsp;packages as per the docs, but I get the below error when&amp;nbsp;&lt;SPAN&gt;building the project&lt;/SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;MSBUILD : error : Fody: An unhandled exception occurred:
    MSBUILD : error : Exception:
    MSBUILD : error : Failed to execute weaver /Users/username/.nuget/packages/appdynamics.agent.autoinstrument.fody/2023.12.0/build/../weaver/AppDynamics.Agent.AutoInstrument.Fody.dll
    MSBUILD : error : Type:
    MSBUILD : error : System.Exception
    MSBUILD : error : StackTrace:
    MSBUILD : error :   at InnerWeaver.ExecuteWeavers () [0x0015a] in C:\projects\fody\FodyIsolated\InnerWeaver.cs:222
    MSBUILD : error :   at InnerWeaver.Execute () [0x000fe] in C:\projects\fody\FodyIsolated\InnerWeaver.cs:112
    MSBUILD : error : Source:
    MSBUILD : error : FodyIsolated
    MSBUILD : error : TargetSite:
    MSBUILD : error : Void ExecuteWeavers()
    MSBUILD : error : Sequence contains more than one matching element
    MSBUILD : error : Type:
    MSBUILD : error : System.InvalidOperationException
    MSBUILD : error : StackTrace:
    MSBUILD : error :   at System.Linq.Enumerable.Single[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00045] in /Users/builder/jenkins/workspace/build-package-osx-mono/2020-02/external/bockbuild/builds/mono-x64/external/corefx/src/System.Linq/src/System/Linq/Single.cs:71
    MSBUILD : error :   at AppDynamics.Agent.AutoInstrument.Fody.ImportedReferences.LoadTypes () [0x000f1] in /opt/buildAgent/work/2ab48d427bca2ab0/sdk/AppDynamics.Agent.AutoInstrument.Fody/ImportedReferences.cs:117
    MSBUILD : error :   at AppDynamics.Agent.AutoInstrument.Fody.ImportedReferences..ctor (ModuleWeaver weaver) [0x0000d] in /opt/buildAgent/work/2ab48d427bca2ab0/sdk/AppDynamics.Agent.AutoInstrument.Fody/ImportedReferences.cs:90
    MSBUILD : error :   at ModuleWeaver.Execute () [0x00000] in /opt/buildAgent/work/2ab48d427bca2ab0/sdk/AppDynamics.Agent.AutoInstrument.Fody/ModuleWeaver.cs:17
    MSBUILD : error :   at InnerWeaver.ExecuteWeavers () [0x000b7] in C:\projects\fody\FodyIsolated\InnerWeaver.cs:204
    MSBUILD : error : Source:
    MSBUILD : error : System.Core
    MSBUILD : error : TargetSite:
    MSBUILD : error : Mono.Cecil.MethodDefinition Single[MethodDefinition](System.Collections.Generic.IEnumerable`1[Mono.Cecil.MethodDefinition], System.Func`2[Mono.Cecil.MethodDefinition,System.Boolean])&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Any help please?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 13:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721167#M2442</guid>
      <dc:creator>Osama_Abbas</dc:creator>
      <dc:date>2024-04-04T13:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms Network Requests Automatic Instrumentation and Tracking</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721168#M2443</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/168025"&gt;@Osama.Abbas&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I shared your feedback with the Docs team! If I find any other information around your question, I'll share it here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 17:16:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721168#M2443</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2024-04-04T17:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Xamarin Forms Network Requests Automatic Instrumentation and Tracking</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721169#M2444</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/168025"&gt;@Osama.Abbas&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;I'm still waiting to hear back from our Docs team. Have you found a solution or any new info in the meantime?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Apr 2024 15:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Xamarin-Forms-Network-Requests-Automatic-Instrumentation-and/m-p/721169#M2444</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2024-04-09T15:51:04Z</dc:date>
    </item>
  </channel>
</rss>

