Adding environment to java APM Agent for JBoss

In the documentation the manual setup for JBoss says that you have to add this lines to the standalone.conf file

export JAVA_OPTS="$JAVA_OPTS -javaagent:/path/to/elastic-apm-agent-<version>.jar"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.service_name=my-cool-service"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.application_packages=org.example,org.another.example"
export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.server_url=http://localhost:8200"

and I wanto to add the environment, an the documentation says that I have to add this property

elastic.apm.environment

so, following the pattern to add the enviroment I have to add this line?

export JAVA_OPTS="$JAVA_OPTS -Delastic.apm.environment=my-environment"

Yes that should work.

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