Java agent problem:application_packages cant take effect

hi

Kibana version:7.0.0

Elasticsearch version:7.0.0

APM Server version:7.2.0

APM Agent language and version:java elastic-apm-agent-1.7.0.jar

this is my application setup:
-javaagent:/weblogic/app/etl-dsf/elastic-apm-agent-1.7.0.jar -Delastic.apm.service_name=rtrc-dsf -Delastic.apm.server_url=http://10.3.134.51:8200 -Delastic.apm.application_packages=cn.com.bsfit.frms.ums.etl.DsfETLTool -Delastic.apm.log_level=TRACE -Delastic.apm.log_file=/weblogic/app/etl-dsf/logs/apm-trace.log

i can see application_packages take effect in the log

2019-07-30 17:23:35.482 [main] DEBUG co.elastic.apm.agent.configuration.StartupInfo - application_packages: 'cn.com.bsfit.frms.ums.etl.DsfETLTool' (source: Java System Properties)

but also i get the ETLMgrService#instruction which is on the same leve as DsfETLTool,
and DsfETLTool didnt be captured anyway.

Did I misconfigure it?thanks

Hi :slight_smile:

the application_packages option does not configure what should be monitored by default. See also the corresponding documentation: https://www.elastic.co/guide/en/apm/agent/java/current/config-stacktrace.html#config-application-packages

Maybe you are looking for trace_methods instead?

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