observability-edot-java-migrate

Document migration steps from Elastic APM agent to EDOT Java agent.

31|4|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/elastic/cursor-plugins --skill observability-edot-java-migrate
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: observability-edot-java-migrate
Source: https://github.com/elastic/cursor-plugins/tree/main/elastic/skills/observability/edot-java-migrate
Command: npx skills add https://github.com/elastic/cursor-plugins --skill observability-edot-java-migrate

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Migrating Java applications from the classic Elastic APM Java agent to the EDOT Java agent can be error-prone and time-consuming. This Skill provides a clear, reproducible migration plan and best practices to minimize downtime and misconfiguration.

Core Features & Use Cases

  • Provides a step-by-step migration checklist for replacing elastic-apm-agent.jar with elastic-otel-javaagent.jar.
  • Documents required environment variables and attachment methods to ensure correct EDOT agent initialization.
  • Use Case: Upgrading a microservice fleet in production and staging with minimal risk and validated telemetry.

Quick Start

Follow the migration guide to replace elastic-apm-agent usage with the EDOT Java agent in your Java application.

Frequently Asked Questions about observability-edot-java-migrate

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

FAQPage Schema
How do I migrate a Java application from the Elastic APM agent to the EDOT Java agent?

To migrate from the Elastic APM agent to the EDOT Java agent, replace elastic-apm-agent.jar with elastic-otel-javaagent.jar and update your environment variables. This process requires defining precise configurations for agent attachment to ensure correct initialization.

What environment variables are required when attaching the EDOT Java agent?

Required environment variables for the EDOT Java agent dictate its initialization and attachment method. You must configure these variables precisely during migration to replace the classic Elastic APM agent and avoid misconfiguration.

Can I run the Elastic APM agent and the EDOT Java agent at the same time?

No, running both agents simultaneously is disallowed. When migrating your Java application to the EDOT Java agent, you must remove the classic Elastic APM agent to prevent conflicts and ensure correct telemetry collection.

What is the best way to upgrade Java services across staging and production environments to EDOT?

The best way to upgrade Java services across staging and production is to follow a reproducible migration checklist. This minimizes downtime and risk by validating telemetry and ensuring correct EDOT agent attachment and configuration.

Why does my Java application fail to initialize after switching to the EDOT Java agent?

Initialization failures after switching to the EDOT Java agent often stem from incorrect environment variables or conflicting agents. Ensure you remove the Elastic APM agent and apply the precise required attachment method during migration.