<?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: Split .Net Business Transaction on Method Array Parameters in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735957#M9634</link>
    <description>&lt;P data-unlink="true"&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;Andrew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;As the below share code is for the standalone application, where main method will only call one time. So, to detect the transactions for instrumented application below are min requirement-&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Instrumented application process should be up for more than one min, so .Net agent will collect and send the metrics in next mins.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Business transaction ( class/methods) on which you are creating BT, that should execute more than 2 times in its lifetime&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;Now, if we see the example. Parameters are passed on Main method, based on that your switch case will execute and required methods will execute.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;So, we would suggest creating POCO BT on&amp;nbsp; DoA and DoB methods individually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Let us know if it does not help. In case you have any question, could you please share some more details of the requirement and on which kind of application and transaction type you are creating the BT.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;Ashish.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2020 17:53:06 GMT</pubDate>
    <dc:creator>Ashish_Singh</dc:creator>
    <dc:date>2020-02-08T17:53:06Z</dc:date>
    <item>
      <title>Split .Net Business Transaction on Method Array Parameters</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735956#M9633</link>
      <description>&lt;P&gt;Given the program below that accepts arguments from the command-line via the string[] args parameter, how do I setup a business transaction that will split based on the first value, args[0]?&lt;/P&gt;&lt;P&gt;I have it set to use Parameter index 0 and a Getter chain value of .[0] right now, which doesn't seem to work.&amp;nbsp; For the Getter chain I have also tried string/0 and int/0 an those do not seem to work either.&lt;/P&gt;&lt;P&gt;The &lt;A href="https://docs.appdynamics.com/display/PRO45/Using+Getter+Chains" target="_blank" rel="noopener nofollow noreferrer"&gt;Using Getter Chains&lt;/A&gt; documentation is not very clear about this and does not provide clear example of accessing a value in a parameter that is an array.&lt;/P&gt;&lt;PRE class="lia-code-sample language-csharp"&gt;&lt;CODE&gt;using System;
using System.Collections.Generic;
using System.Linq;

public class Program
{
  public static void Main(string[] args)
  {
    switch(args[0])
    {
      case "A":
       DoA();
       break;
      case "B":
       DoB();
       break;
    }
}

  private static void DoA(){}

  private static void DoB(){}
}&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Feb 2020 21:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735956#M9633</guid>
      <dc:creator>Andrew_Draut</dc:creator>
      <dc:date>2020-02-07T21:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: Split .Net Business Transaction on Method Array Parameters</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735957#M9634</link>
      <description>&lt;P data-unlink="true"&gt;Hi&amp;nbsp;&lt;SPAN class=""&gt;Andrew,&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;As the below share code is for the standalone application, where main method will only call one time. So, to detect the transactions for instrumented application below are min requirement-&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Instrumented application process should be up for more than one min, so .Net agent will collect and send the metrics in next mins.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;Business transaction ( class/methods) on which you are creating BT, that should execute more than 2 times in its lifetime&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;Now, if we see the example. Parameters are passed on Main method, based on that your switch case will execute and required methods will execute.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;So, we would suggest creating POCO BT on&amp;nbsp; DoA and DoB methods individually.&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;Let us know if it does not help. In case you have any question, could you please share some more details of the requirement and on which kind of application and transaction type you are creating the BT.&lt;/P&gt;&lt;P data-unlink="true"&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P data-unlink="true"&gt;&lt;SPAN class=""&gt;Ashish.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2020 17:53:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735957#M9634</guid>
      <dc:creator>Ashish_Singh</dc:creator>
      <dc:date>2020-02-08T17:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Split .Net Business Transaction on Method Array Parameters</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735958#M9635</link>
      <description>&lt;P&gt;That does answer my question.&amp;nbsp; I had hoped to use the BT on the Main method as a fallback for unconfigured specific BTs for a .Net console application that acts as a job/process runner.&amp;nbsp; It would be nice for this scenario to work, though as it would save a lot of time configuring BTs and allow instrumenting the entire process as there is a bunch of setup code that runs before each job/process that is not currently captured because we have to configure the BT for something farther down the call chain.&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 17:40:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Split-Net-Business-Transaction-on-Method-Array-Parameters/m-p/735958#M9635</guid>
      <dc:creator>Andrew_Draut</dc:creator>
      <dc:date>2020-02-10T17:40:29Z</dc:date>
    </item>
  </channel>
</rss>

