APM: Dynamic changes not reflected

Kibana version:
Kibana 6.7

Elasticsearch version: 6.7

APM Server version: 6.7

APM Agent language and version:Java Agent 1.12.0

Browser version: Chrome

Original install method (e.g. download page, yum, deb, from source, etc.) and version:

Fresh install or upgraded from other version? Fresh

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc. NO

We are trying to implement dynamic property update for APM.
We are attaching the APM on our SpringBoot Application.
Code ::
ElasticApmAttacher.attach();
SpringApplication.run(Application.class, args);

Steps to reproduce:
We supply Java system variables on startup : -Delastic.apm.service_name=service_Oct6 -Delastic.apm.application_packages=com.abc -Delastic.apm.server_urls=http://apm-server-url:8200

After a given amount of time, we update System property from within the code.
System.setProperty("elastic.apm.application_packages", "com.xyz");

We expect the transactions and spans in APM to show for "com.xyz" . But they still show data from "com.abc".

Approach 2 ::
We tried a second option of javaagent.
Downloaded java agent 1.18 . attached it to the application on startup .
We commended the code //ElasticApmAttacher.attach();

-javaagent:../elastic-apm-agent-1.18.1.jar -Delastic.apm.service_name=service_Oct6 -Delastic.apm.application_packages=com.abc -Delastic.apm.server_urls=http://apm-server-url:8200

After a given amount of time, we update System property from within the code.
System.setProperty("elastic.apm.application_packages", "com.xyz");

We expect the transactions and spans in APM to show for "com.xyz" . But they still show data from "com.abc".

Could you please help in suggesting what could be going wrong or if there is a problem with implementation.

Errors in browser console (if relevant): No errors

Provide logs and/or server output (if relevant):

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.