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-instrument
We earn commissions when you shop through the links below.
Instrument a Java application with the Elastic Distribution of OpenTelemetry (EDOT) Java agent for automatic tracing, metrics, and logs. Use when adding observability to a Java service that has no existing APM agent.
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-instrumentManual setup by platform
Claude Code
~/.claude/skills/elastic-observability-edot-java-instrument/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 Instrumentation
Read the setup guide before making changes:
- EDOT Java setup
- OpenTelemetry Java agent
- EDOT Java configuration
Guidelines
- 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_NAMEOTEL_EXPORTER_OTLP_ENDPOINT— must be the managed OTLP endpoint or EDOT Collector URL. 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>"
- 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 setup guide for complete
Dockerfile and docker-compose 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-instrument
What does the observability-edot-java-instrument skill do?
Instrument a Java application with the Elastic Distribution of OpenTelemetry (EDOT) Java agent for automatic tracing, metrics, and logs. Use when adding observability to a Java service that has no existing APM agent. 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-instrument skill?
Run `npx @skills-hub-ai/cli install elastic-observability-edot-java-instrument` 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-instrument/ 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-instrument work with?
observability-edot-java-instrument 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-instrument 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-instrument after installing it?
In Claude Code, type `/elastic-observability-edot-java-instrument` (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-instrument 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.