JAX-RS configuration options
Elastic Cloud Serverless projects are autoscaled environments, fully managed by Elastic and available on Elastic Cloud. Availability This functionality is generally available and ready for production usage. The Elastic Stack includes Elastic's core products such as Elasticsearch, Kibana, Logstash, and Beats. Availability This functionality is generally available and ready for production usage. Unless stated otherwise on the page, this functionality is available when your Elastic Stack is deployed on Elastic Cloud Hosted, Elastic Cloud Enterprise, Elastic Cloud on Kubernetes, and self-managed environments. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes. The Elastic APM Java agent enables you to trace the execution of operations in your Java applications, sending performance metrics and errors to the Elastic APM Server. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
Serverless Observability
Generally available
Stack
Generally available
APM Agent Java
Generally available
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.
| Default | Type | Dynamic |
|---|---|---|
true |
Boolean | false |
| Java System Properties | Property file | Environment |
|---|---|---|
elastic.apm.enable_jaxrs_annotation_inheritance |
enable_jaxrs_annotation_inheritance |
ELASTIC_APM_ENABLE_JAXRS_ANNOTATION_INHERITANCE |
The Elastic APM Java agent enables you to trace the execution of operations in your Java applications, sending performance metrics and errors to the Elastic APM Server. Availability This functionality is generally available and ready for production usage. This documentation corresponds to the latest patch available for each minor version. If you're not using the latest patch, check the release notes for changes.
APM Agent Java
1.8+
Generally available since 1.8
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.
| Default | Type | Dynamic |
|---|---|---|
false |
Boolean | false |
| Java System Properties | Property file | Environment |
|---|---|---|
elastic.apm.use_jaxrs_path_as_transaction_name |
use_jaxrs_path_as_transaction_name |
ELASTIC_APM_USE_JAXRS_PATH_AS_TRANSACTION_NAME |