<?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: Custom plugin stopped working - Spring boot in Extensions</title>
    <link>https://community.dynatrace.com/t5/Extensions/Custom-plugin-stopped-working-Spring-boot/m-p/125535#M1275</link>
    <description>&lt;P&gt;I found it...&lt;BR /&gt;Reason was indeed the process group name change.&lt;/P&gt;&lt;P&gt;following is working for me:&lt;/P&gt;&lt;PRE&gt;"name": "custom.python.***-scheduler-plugin",&amp;nbsp;&lt;BR /&gt;"version": "1.6.17",&amp;nbsp;&lt;BR /&gt;"type": "python",&amp;nbsp;&lt;BR /&gt;"entity": "PROCESS_GROUP_INSTANCE",&amp;nbsp;&lt;BR /&gt;"processTypeNames": ["JAVA"],&amp;nbsp;&lt;BR /&gt;"source": {&amp;nbsp; &lt;BR /&gt;  "package": "***_plugin",&amp;nbsp; &lt;BR /&gt;  "className": "***SchedulerPlugin",&amp;nbsp; &lt;BR /&gt;  "install_requires": [&amp;nbsp; &amp;nbsp;"requests&amp;gt;=2.6.0"&amp;nbsp; ],&amp;nbsp; &lt;BR /&gt;  "activation": "Singleton",&amp;nbsp; &lt;BR /&gt;  "activation_name_pattern": "^.*scheduler.*$"&amp;nbsp;&lt;BR /&gt;},&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;processTypeNames is indeed JAVA in stead of tomcat and for the activation_name_pattern it looks at the process group name. This information can be found in the pluginDevLoggerPluginEngineDefault.log. It may be a good idea to explain this a bit better in the documentation. It took me some time to find it.&lt;/P&gt;&lt;PRE&gt;...ProcessSnapshotEntry(group_id=17701666967535205482, node_id=0, group_instance_id=11233226343147840351, process_type=10, group_name='SpringBoot be.inburgering.scheduler.SchedulerApplication (dev)', ...&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;But the main issue was in the Python script itself where I took the pgi by name. Since the name was changed, because of the new "Spring boot" support (which I like a lot), it did not find a process instance.&lt;/P&gt;&lt;P&gt;So I replaced it with:&lt;/P&gt;&lt;PRE&gt;pgi = self.find_single_process_group(lambda pgi: pgi.group_name.startswith('SpringBoot be.inburgering.scheduler.SchedulerApplication'))&lt;/PRE&gt;&lt;P&gt;Note that I can't use the pgi_name function anymore because that does an "equals" and the name now includes the spring.profiles.active at the end.&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Tue, 26 Nov 2019 09:25:11 GMT</pubDate>
    <dc:creator>Bert_VanderHeyd</dc:creator>
    <dc:date>2019-11-26T09:25:11Z</dc:date>
    <item>
      <title>Custom plugin stopped working - Spring boot</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-plugin-stopped-working-Spring-boot/m-p/125534#M1274</link>
      <description>&lt;P&gt;Recently a custom plugin I wrote did not work anymore.&lt;BR /&gt;It is a oneagent plugin written for a specific Spring boot application which does not activate anymore. I guess something has changed.&lt;/P&gt;&lt;P&gt;What I already saw is that recently the name changed from the process group. It used to be someting like scheduler....jar (name of the standalone jar file) and now it is:&lt;BR /&gt;"SpringBoot **.****.scheduler.SchedulerApplication (dev)"&lt;/P&gt;&lt;P&gt;So, I already modified the plugin.json to:&lt;/P&gt;&lt;PRE&gt;"processTypeNames": ["TOMCAT"]&lt;BR /&gt;...&lt;BR /&gt;"activation_name_pattern": "^SpringBoot be\\.inburgering\\.scheduler.SchedulerApplication.*$"&lt;/PRE&gt;&lt;P&gt;According to the latest docs it looks to the process_instance name.&lt;/P&gt;&lt;P&gt;And I am not sure about "TOMCAT" as processType. My previous version which worked used "JAVA"&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2019 09:13:00 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-plugin-stopped-working-Spring-boot/m-p/125534#M1274</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2019-11-26T09:13:00Z</dc:date>
    </item>
    <item>
      <title>Re: Custom plugin stopped working - Spring boot</title>
      <link>https://community.dynatrace.com/t5/Extensions/Custom-plugin-stopped-working-Spring-boot/m-p/125535#M1275</link>
      <description>&lt;P&gt;I found it...&lt;BR /&gt;Reason was indeed the process group name change.&lt;/P&gt;&lt;P&gt;following is working for me:&lt;/P&gt;&lt;PRE&gt;"name": "custom.python.***-scheduler-plugin",&amp;nbsp;&lt;BR /&gt;"version": "1.6.17",&amp;nbsp;&lt;BR /&gt;"type": "python",&amp;nbsp;&lt;BR /&gt;"entity": "PROCESS_GROUP_INSTANCE",&amp;nbsp;&lt;BR /&gt;"processTypeNames": ["JAVA"],&amp;nbsp;&lt;BR /&gt;"source": {&amp;nbsp; &lt;BR /&gt;  "package": "***_plugin",&amp;nbsp; &lt;BR /&gt;  "className": "***SchedulerPlugin",&amp;nbsp; &lt;BR /&gt;  "install_requires": [&amp;nbsp; &amp;nbsp;"requests&amp;gt;=2.6.0"&amp;nbsp; ],&amp;nbsp; &lt;BR /&gt;  "activation": "Singleton",&amp;nbsp; &lt;BR /&gt;  "activation_name_pattern": "^.*scheduler.*$"&amp;nbsp;&lt;BR /&gt;},&lt;BR /&gt;...&lt;/PRE&gt;&lt;P&gt;processTypeNames is indeed JAVA in stead of tomcat and for the activation_name_pattern it looks at the process group name. This information can be found in the pluginDevLoggerPluginEngineDefault.log. It may be a good idea to explain this a bit better in the documentation. It took me some time to find it.&lt;/P&gt;&lt;PRE&gt;...ProcessSnapshotEntry(group_id=17701666967535205482, node_id=0, group_instance_id=11233226343147840351, process_type=10, group_name='SpringBoot be.inburgering.scheduler.SchedulerApplication (dev)', ...&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;But the main issue was in the Python script itself where I took the pgi by name. Since the name was changed, because of the new "Spring boot" support (which I like a lot), it did not find a process instance.&lt;/P&gt;&lt;P&gt;So I replaced it with:&lt;/P&gt;&lt;PRE&gt;pgi = self.find_single_process_group(lambda pgi: pgi.group_name.startswith('SpringBoot be.inburgering.scheduler.SchedulerApplication'))&lt;/PRE&gt;&lt;P&gt;Note that I can't use the pgi_name function anymore because that does an "equals" and the name now includes the spring.profiles.active at the end.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 26 Nov 2019 09:25:11 GMT</pubDate>
      <guid>https://community.dynatrace.com/t5/Extensions/Custom-plugin-stopped-working-Spring-boot/m-p/125535#M1275</guid>
      <dc:creator>Bert_VanderHeyd</dc:creator>
      <dc:date>2019-11-26T09:25:11Z</dc:date>
    </item>
  </channel>
</rss>

