<?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 Spring Data no JDBC calls captured in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733219#M8367</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am setting up AppD on my fairly-vanilla Spring app, and it's not showing any DB calls on any of my transactions:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Spring Boot 1.5.3&lt;/LI&gt;
&lt;LI&gt;Spring Data&amp;nbsp;JPA&lt;/LI&gt;
&lt;LI&gt;Spring Data REST&lt;/LI&gt;
&lt;LI&gt;PostgreSQL&lt;/LI&gt;
&lt;LI&gt;running in GKE/K8S using Google Cloud SQL Postgres&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I checked the Bytecode transformer logs, and it's happily finding the classes:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[main] 11 Apr 2018 21:39:00,175  INFO - 		Applying method interceptor exit.jdbc.Connect at org/postgresql/Driver.connect ((Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;) id:597&lt;/PRE&gt;
&lt;P&gt;But no DB calls are detected in any of my traces, neither reads nor writes.&lt;/P&gt;

&lt;P&gt;Anything obvious I could be missing?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 12 Apr 2018 18:36:06 GMT</pubDate>
    <dc:creator>CommunityUser</dc:creator>
    <dc:date>2018-04-12T18:36:06Z</dc:date>
    <item>
      <title>Spring Data no JDBC calls captured</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733219#M8367</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I am setting up AppD on my fairly-vanilla Spring app, and it's not showing any DB calls on any of my transactions:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Spring Boot 1.5.3&lt;/LI&gt;
&lt;LI&gt;Spring Data&amp;nbsp;JPA&lt;/LI&gt;
&lt;LI&gt;Spring Data REST&lt;/LI&gt;
&lt;LI&gt;PostgreSQL&lt;/LI&gt;
&lt;LI&gt;running in GKE/K8S using Google Cloud SQL Postgres&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;I checked the Bytecode transformer logs, and it's happily finding the classes:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;[main] 11 Apr 2018 21:39:00,175  INFO - 		Applying method interceptor exit.jdbc.Connect at org/postgresql/Driver.connect ((Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;) id:597&lt;/PRE&gt;
&lt;P&gt;But no DB calls are detected in any of my traces, neither reads nor writes.&lt;/P&gt;

&lt;P&gt;Anything obvious I could be missing?&amp;nbsp;&lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Apr 2018 18:36:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733219#M8367</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-04-12T18:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Data no JDBC calls captured</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733220#M8368</link>
      <description>&lt;P&gt;Josh,&lt;/P&gt;

&lt;P&gt;The fact that you see the Connect instrumentation applied is encouraging!&amp;nbsp; Do you also see instrumentation applied for callable statements, prepared statements etc.?&lt;/P&gt;

&lt;P&gt;If not, you may be using a version of the Postgres jdbc driver that is not covered by the out of the box agent configuration.&amp;nbsp; In this case, you can configure the implementation classes to to picked up using the relevant jdbc-* &lt;A href="https://docs.appdynamics.com/pages/viewpage.action?pageId=45490419#AppAgentNodeProperties(F-L)-jdbc-callable-statements" target="_self" rel="nofollow noopener noreferrer"&gt;agent properties&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;If it happens that you're using v9.4+ of the Postgres driver, the settings should be:&lt;/P&gt;
&lt;DIV class="line number1 index0 alt2"&gt;&lt;CODE class="java plain"&gt;jdbc-statements: value=&lt;/CODE&gt;&lt;CODE class="java string"&gt;"org.postgresql.jdbc.PgStatement"&lt;/CODE&gt;&lt;/DIV&gt;
&lt;DIV class="line number2 index1 alt1"&gt;&lt;CODE class="java plain"&gt;jdbc-connections: value=&lt;/CODE&gt;&lt;CODE class="java string"&gt;"org.postgresql.jdbc.PgConnection"&lt;/CODE&gt;&lt;/DIV&gt;
&lt;DIV class="line number3 index2 alt2"&gt;&lt;CODE class="java plain"&gt;jdbc-prepared-statements: value=&lt;/CODE&gt;&lt;CODE class="java string"&gt;"org.postgresql.jdbc.PgPreparedStatement"&lt;/CODE&gt;&lt;/DIV&gt;
&lt;DIV class="line number4 index3 alt1"&gt;&lt;CODE class="java plain"&gt;jdbc-callable-statements: value=&lt;/CODE&gt;&lt;CODE class="java string"&gt;"org.postgresql.jdbc.PgCallableStatement"&lt;/CODE&gt;&lt;/DIV&gt;

&lt;P&gt;If this isn't the issue, then another possibility is that the jdbc activity is happening on a thread that has not been tracked by the agent.&amp;nbsp; You can tell if this is the case using the &lt;A href="https://docs.appdynamics.com/display/PRO44/Business+Transaction+Discovery+Sessions#BusinessTransactionDiscoverySessions-InspectUninstrumentedCodetoDiscoverEntryPoints" target="_self" rel="nofollow noopener noreferrer"&gt;uninstrumented code detection&lt;/A&gt; feature, and &lt;A href="https://docs.appdynamics.com/display/PRO44/Enable+Thread+Correlation+for+Java" target="_self" rel="nofollow noopener noreferrer"&gt;configure the missing thread handoffs&lt;/A&gt; in the agent's fork-config configuration, or the thread-correlation-classes agent property.&lt;/P&gt;

&lt;P&gt;Warm regards,&lt;/P&gt;
&lt;P&gt;Peter.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 09:51:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733220#M8368</guid>
      <dc:creator>Peter_Holditch</dc:creator>
      <dc:date>2018-04-16T09:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Data no JDBC calls captured</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733221#M8369</link>
      <description>&lt;P&gt;manually setting those node properties got everything working, thanks! (though you may want to fix the auto-detection)&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 18:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Spring-Data-no-JDBC-calls-captured/m-p/733221#M8369</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-04-16T18:31:48Z</dc:date>
    </item>
  </channel>
</rss>

