apm-java

Add Elastic APM Java agent instrumentation to Java or Spring Boot applications.

6|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill apm-java
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: apm-java
Source: https://github.com/patrykkopycinski/elastic-cursor-plugin/tree/main/.cursor/skills/apm-java
Command: npx skills add https://github.com/patrykkopycinski/elastic-cursor-plugin --skill apm-java

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps developers quickly add Elastic APM instrumentation to Java and Spring Boot applications so services emit traces and performance metrics without manual, error-prone configuration steps.

Core Features & Use Cases

  • Agent installation: Guidance to add the Elastic APM Java agent dependency or use the agent JAR for JVM instrumentation.
  • Configuration & startup: Instructions to start the JVM with the Java agent and set ELASTIC_APM_SERVER_URL and ELASTIC_APM_SECRET_TOKEN or API key, including suggestions for service_name and environment labels.
  • Validation: Steps to trigger requests and confirm traces appear in Kibana APM, useful for local development, CI deployments, and cloud or on-prem APM Server setups.
  • Use case: Instrument a Spring Boot microservice built with Maven or Gradle to capture distributed traces and latency metrics for monitoring and debugging.

Quick Start

Use the apm-java skill to instrument your Spring Boot service by providing the build tool, Spring Boot version, and the APM Server URL with token or API key.

Frequently Asked Questions about apm-java

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Elastic APM instrumentation to a Spring Boot application?

To add Elastic APM instrumentation to a Spring Boot application, you attach the Elastic APM Java agent via JVM startup options and configure the ELASTIC_APM_SERVER_URL with a secret token or API key to capture traces and metrics.

Does Elastic APM Java agent work with both Maven and Gradle builds?

Yes, Elastic APM instrumentation applies to Java and Spring Boot services built with either Maven or Gradle, allowing you to add the agent dependency or use the agent JAR for local development, CI/CD, or production environments.

What configuration is needed to start the JVM with the Elastic APM Java agent?

Starting the JVM with the Elastic APM Java agent requires setting the APM Server URL, providing a secret token or API key, and defining the service_name and environment labels to ensure traces appear correctly in Kibana APM.

How do I validate that Elastic APM traces are appearing in Kibana?

To validate Elastic APM traces in Kibana, trigger requests to your instrumented Java or Spring Boot service and confirm that distributed traces and latency metrics are captured and displayed in the Kibana APM interface.

Can I use Elastic APM for local development or is it only for production rollout?

Elastic APM instrumentation can be used during local development, CI/CD deployments, and production rollout to capture performance metrics and traces for Java and Spring Boot microservices across cloud or on-prem APM Server setups.