JAX-RS configuration optionsedit

enable_jaxrs_annotation_inheritance (performance)edit

By default, the agent will scan for @Path annotations on the whole class hierarchy, recognizing a class as a JAX-RS resource if the class or any of its superclasses/interfaces has a class level @Path annotation. If your application does not use @Path annotation inheritance, set this property to false to only scan for direct @Path annotations. This can improve the startup time of the agent.

DefaultTypeDynamic

true

Boolean

false

Java System PropertiesProperty fileEnvironment

elastic.apm.enable_jaxrs_annotation_inheritance

enable_jaxrs_annotation_inheritance

ELASTIC_APM_ENABLE_JAXRS_ANNOTATION_INHERITANCE

use_jaxrs_path_as_transaction_name ( [1.8.0] Added in 1.8.0. )edit

By default, the agent will use ClassName#methodName for the transaction name of JAX-RS requests. If you want to use the URI template from the @Path annotation, set the value to true.

DefaultTypeDynamic

false

Boolean

false

Java System PropertiesProperty fileEnvironment

elastic.apm.use_jaxrs_path_as_transaction_name

use_jaxrs_path_as_transaction_name

ELASTIC_APM_USE_JAXRS_PATH_AS_TRANSACTION_NAME