This skill may not reflect the latest upstream change
Next.js Releases update on 2026-11-09 may affect this skill Last checked Nov 25, 2026.
observability-edot-java-migrate
We earn commissions when you shop through the links below.
Migrate a Java application from the classic Elastic APM Java agent to the EDOT Java agent. Use when switching from elastic-apm-agent.jar to elastic-otel-javaagent.jar.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install elastic-observability-edot-java-migrateManual setup by platform
Claude Code
~/.claude/skills/elastic-observability-edot-java-migrate/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiSigned with the skills-hub.ai Ed25519 distributor key over this exact slug, version and content. Check it with `npx @skills-hub-ai/cli verify`.
- Key
- skills-hub-ed25519-2026-11
- Signed
Instructions
EDOT Java Migration
Read the migration guide before making changes:
- Migration guide
- EDOT Java setup
- EDOT Java configuration
Guidelines
- Remove ALL classic APM references:
elastic-apm-agent.jar,elasticapm.properties, allELASTIC_APM_*env vars,
and anyco.elastic.apmMaven/Gradle dependencies - Use
elastic-otel-javaagent.jar(download from
Maven Central, not a Maven/Gradle
compile dependency) - Attach via
-javaagent:/path/to/elastic-otel-javaagent.jaror
JAVA_TOOL_OPTIONS="-javaagent:/path/to/elastic-otel-javaagent.jar"— without this the agent does nothing - Set exactly three required environment variables:
OTEL_SERVICE_NAME(replacesELASTIC_APM_SERVICE_NAME)OTEL_EXPORTER_OTLP_ENDPOINT— must be the managed OTLP endpoint or EDOT Collector URL. Do NOT reuse the
oldELASTIC_APM_SERVER_URLvalue. Never use an APM Server URL (noapm-server, no:8200, no
/intake/v2/events)OTEL_EXPORTER_OTLP_HEADERS—"Authorization=ApiKey <key>"or"Authorization=Bearer <token>"(replaces
ELASTIC_APM_SECRET_TOKEN/API_KEY)
- Do NOT set
OTEL_TRACES_EXPORTER,OTEL_METRICS_EXPORTER, orOTEL_LOGS_EXPORTER— the defaults are already
correct - Never run both classic Elastic APM agent and EDOT agent on the same JVM
Examples
See the EDOT Java migration guide for
complete examples.
Security
Reviews (0)
Related skills
Browse all →More from Elastic
View source →More Build skills
Browse category →Frequently asked questions about observability-edot-java-migrate
What does the observability-edot-java-migrate skill do?
Migrate a Java application from the classic Elastic APM Java agent to the EDOT Java agent. Use when switching from elastic-apm-agent.jar to elastic-otel-javaagent.jar. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the observability-edot-java-migrate skill?
Run `npx @skills-hub-ai/cli install elastic-observability-edot-java-migrate` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/elastic-observability-edot-java-migrate/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does observability-edot-java-migrate work with?
observability-edot-java-migrate runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the observability-edot-java-migrate skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use observability-edot-java-migrate after installing it?
In Claude Code, type `/elastic-observability-edot-java-migrate` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the observability-edot-java-migrate skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.