<?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: Appdynamics to monitor java httpclient and clientbuilder? in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722653#M3281</link>
    <description>&lt;P&gt;ok so this might be a problem.. but there's no solution at least in the page&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/21.6/en/application-monitoring/install-app-server-agents/java-agent/trace-multithreaded-transactions-for-java#TraceMultithreadedTransactionsforJava-MonitorAsynchronousandThreadProcessingActivity" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/21.6/en/application-monitoring/install-app-server-agents/java-agent/trace-multithreaded-transactions-for-java#TraceMultithreadedTransactionsforJava-MonitorAsynchronousandThreadProcessingActivity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/21.9/en/application-monitoring/install-app-server-agents/java-agent/java-supported-environments#:~:text=The%20AppDynamics%20Java%20Agent%20uses,on%20the%20following%20Java%20runtimes" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/21.9/en/application-monitoring/install-app-server-agents/java-agent/java-supported-environments#:~:text=The%20AppDynamics%20Java%20Agent%20uses,on%20the%20following%20Java%20runtimes&lt;/A&gt;.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Apache&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Apache HTTP Client&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;A href="http://hc.apache.org/httpcomponents-client-ga/index.html" target="blank" rel="nofollow noopener noreferrer"&gt;HTTPClient&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(now in Apache HTTP Components)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes (correlation only)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;See "HTTP Backends" on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.appdynamics.com/21.9/en/application-monitoring/configure-instrumentation/backend-detection-rules/java-backend-detection" target="_blank" rel="noopener nofollow noreferrer"&gt;Java Backend Detection&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;the only thing i can see is DefaultChannelHandlerContext inside Thread Tasks.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quarkus-metric-browser-thread-task.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/36462iE944511AC36E59BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;regards,C&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 04:57:23 GMT</pubDate>
    <dc:creator>carlos_aguni</dc:creator>
    <dc:date>2021-10-19T04:57:23Z</dc:date>
    <item>
      <title>Appdynamics to monitor java httpclient and clientbuilder?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722652#M3280</link>
      <description>&lt;P&gt;Hi all i wrote a dummy java/quarkus app that fetches html data from any web page.&lt;/P&gt;&lt;P&gt;my goal is to see the tier pointing to the endpoints in appdy's flowmap&lt;/P&gt;&lt;P&gt;my code&lt;/P&gt;&lt;PRE class="lia-code-sample language-java"&gt;&lt;CODE&gt;@GET
    @Path("/1")
    @Produces(MediaType.TEXT_PLAIN)
    public String test1(){
        try {
            CloseableHttpClient httpClient = HttpClients
                    .custom()
                    .setSSLContext(new SSLContextBuilder().loadTrustMaterial(null, TrustAllStrategy.INSTANCE).build())
                    .build();
            HttpGet request = new HttpGet("https://nylen.io/d3-spirograph/");
            CloseableHttpResponse response = httpClient.execute(request);
            System.out.println(response.getProtocolVersion());              // HTTP/1.1
            System.out.println(response.getStatusLine().getStatusCode());   // HTTP/1.1
            System.out.println(response.getStatusLine().getReasonPhrase()); // OK
            System.out.println(response.getStatusLine().toString());        // HTTP/1.1 200 OK

            HttpEntity entity = response.getEntity();
            if (entity != null){
                String result = EntityUtils.toString(entity);
                response.close();
                return result;
            }
        } catch (ClientProtocolException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        } catch (NoSuchAlgorithmException e) {
            e.printStackTrace();
        } catch (KeyStoreException e) {
            e.printStackTrace();
        } catch (KeyManagementException e) {
            e.printStackTrace();
        }

        return "ok";
    }&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;path /2&lt;/P&gt;&lt;PRE class="lia-code-sample language-java"&gt;&lt;CODE&gt;@GET
    @Path("/2")
    @Produces(MediaType.TEXT_PLAIN)
    public String test2() throws Exception{

        SSLContext sslcontext = SSLContext.getInstance("TLS");

        sslcontext.init(null, new TrustManager[]{new X509TrustManager() {
            public void checkClientTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {}
            public void checkServerTrusted(X509Certificate[] arg0, String arg1) throws CertificateException {}
            public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; }
        }}, new java.security.SecureRandom());

//        Client client = ClientBuilder.newClient()
        Client client = ClientBuilder.newBuilder()
                                .sslContext(sslcontext)
                                .hostnameVerifier((s1, s2) -&amp;gt; true)
                                .build();
        String ssb = "https://self-signed.badssl.com/";
        String response = client.target(ssb)
                //.queryParam("query", "q")
                .request()
                .accept("text/html")
                .get(String.class);
//                .post(Entity.entity("e", "text/plain"), String.class);
        client.close();
        return response;
    }&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;start app&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;java -javaagent:/opt/appdynamics-agent/ver21.8.0.32958/javaagent.jar \
     -jar /root/quarkus/vintageStore/rest-book/target/quarkus-app/quarkus-run.jar&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;starting logs&lt;/P&gt;&lt;PRE class="lia-code-sample language-markup"&gt;&lt;CODE&gt;...
Agent runtime conf directory set to /opt/appdynamics-agent/ver21.8.0.32958/conf
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: AgentInstallManager - Agent runtime conf directory set to /opt/appdynamics-agent/ver21.8.0.32958/conf
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: JavaAgent - JDK Compatibility: 1.8+
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: JavaAgent - Using Java Agent Version [Server Agent #21.8.0.32958 v21.8.0 GA compatible with 4.4.1.0 r38646896978b0b95298354a38b015eaede619691 release/21.8.0]
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: JavaAgent - Running IBM Java Agent [No]
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: JavaAgent - Java Agent Directory [/opt/appdynamics-agent/ver21.8.0.32958]
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: JavaAgent - Java Agent AppAgent directory [/opt/appdynamics-agent/ver21.8.0.32958]
Agent logging directory set to [/opt/appdynamics-agent/ver21.8.0.32958/logs]
[AD Agent init] Tue Oct 19 01:26:51 BRT 2021[INFO]: JavaAgent - Agent logging directory set to [/opt/appdynamics-agent/ver21.8.0.32958/logs]
getBootstrapResource not available on ClassLoader
Registered app server agent with Node ID[234307] Component ID[94762] Application ID [55102]
Started AppDynamics Java Agent Successfully.
  ____              _&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;problem is i can not see "Service Endponits" being discovered.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="java-appdy-notworking.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/36459iA66A62DD083D4F80/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 04:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722652#M3280</guid>
      <dc:creator>carlos_aguni</dc:creator>
      <dc:date>2021-10-19T04:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Appdynamics to monitor java httpclient and clientbuilder?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722653#M3281</link>
      <description>&lt;P&gt;ok so this might be a problem.. but there's no solution at least in the page&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/21.6/en/application-monitoring/install-app-server-agents/java-agent/trace-multithreaded-transactions-for-java#TraceMultithreadedTransactionsforJava-MonitorAsynchronousandThreadProcessingActivity" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/21.6/en/application-monitoring/install-app-server-agents/java-agent/trace-multithreaded-transactions-for-java#TraceMultithreadedTransactionsforJava-MonitorAsynchronousandThreadProcessingActivity&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/21.9/en/application-monitoring/install-app-server-agents/java-agent/java-supported-environments#:~:text=The%20AppDynamics%20Java%20Agent%20uses,on%20the%20following%20Java%20runtimes" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/21.9/en/application-monitoring/install-app-server-agents/java-agent/java-supported-environments#:~:text=The%20AppDynamics%20Java%20Agent%20uses,on%20the%20following%20Java%20runtimes&lt;/A&gt;.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;Apache&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Apache HTTP Client&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;A href="http://hc.apache.org/httpcomponents-client-ga/index.html" target="blank" rel="nofollow noopener noreferrer"&gt;HTTPClient&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;(now in Apache HTTP Components)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes (correlation only)&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;-&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;Yes&lt;/P&gt;&lt;/TD&gt;&lt;TD&gt;See "HTTP Backends" on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://docs.appdynamics.com/21.9/en/application-monitoring/configure-instrumentation/backend-detection-rules/java-backend-detection" target="_blank" rel="noopener nofollow noreferrer"&gt;Java Backend Detection&lt;/A&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;the only thing i can see is DefaultChannelHandlerContext inside Thread Tasks.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="quarkus-metric-browser-thread-task.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/36462iE944511AC36E59BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;regards,C&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 04:57:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722653#M3281</guid>
      <dc:creator>carlos_aguni</dc:creator>
      <dc:date>2021-10-19T04:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Appdynamics to monitor java httpclient and clientbuilder?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722654#M3282</link>
      <description>&lt;P&gt;got it to work&lt;/P&gt;&lt;P&gt;thank you&lt;/P&gt;&lt;P&gt;need to add&lt;/P&gt;&lt;PRE&gt;-Dappdynamics.async.instrumentation.strategy=constructor&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://docs.appdynamics.com/21.6/en/application-monitoring/install-app-server-agents/java-agent/configure-the-thread-correlation-in-java-agent#ThreadingandtheJavaAgent-SelecttheThreadCorrelationMode" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.appdynamics.com/21.6/en/application-monitoring/install-app-server-agents/java-agent/configure-the-thread-correlation-in-java-agent#ThreadingandtheJavaAgent-SelecttheThreadCorrelationMode&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 05:11:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722654#M3282</guid>
      <dc:creator>carlos_aguni</dc:creator>
      <dc:date>2021-10-19T05:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Appdynamics to monitor java httpclient and clientbuilder?</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722655#M3283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/154258"&gt;@carlos.aguni&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;Thank you for following back up on your post with the solution. We love to see this in the community.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 16:11:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Appdynamics-to-monitor-java-httpclient-and-clientbuilder/m-p/722655#M3283</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2021-10-19T16:11:38Z</dc:date>
    </item>
  </channel>
</rss>

