elastic avatar

Observability Edot Java Instrument

This sets up automatic observability for Java applications using Elastic's OpenTelemetry distribution. You attach the agent JAR with a javaagent flag, point it at your OTLP endpoint (not the old APM server URL), and set three environment variables for service name, endpoint, and auth header. The skill enforces the right patterns because it's easy to mess up: developers often try using the wrong exporter settings or mixing this with the classic Elastic APM agent, which breaks things. Good for greenfield services or migrating off legacy APM tooling. The attached agent automatically captures traces, metrics, and logs without code changes, which is the main appeal of the auto-instrumentation approach.

GitHub stars
503
last updated
Jun 1, 2026

Install

$ npx -y skills add elastic/agent-skills --skill observability-edot-java-instrument --agent claude-code

Installs into .claude/skills of the current project.

Files

This sets up automatic observability for Java applications using Elastic's OpenTelemetry distribution. You attach the agent JAR with a javaagent flag, point it at your OTLP endpoint (not the old APM server URL), and set three environment variables for service name, endpoint, and auth header. The skill enforces the right patterns because it's easy to mess up: developers often try using the wrong exporter settings or mixing this with the classic Elastic APM agent, which breaks things. Good for greenfield services or migrating off legacy APM tooling. The attached agent automatically captures traces, metrics, and logs without code changes, which is the main appeal of the auto-instrumentation approach.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/elastic/agent-skills
Categories
DevOps & CI/CD, AI & Agent Building, Java & JVM
License
Apache-2.0
First seen
Jun 11, 2026

More from elastic/agent-skills

All 57
1elastic avatarobservability-edot-java-migrateelastic/agent-skills>0skills.sh installs
2elastic avatarobservability-edot-python-instrumentelastic/agent-skills>0skills.sh installs
3elastic avatarobservability-edot-python-migrateelastic/agent-skills>0skills.sh installs
4elastic avatarobservability-logs-searchelastic/agent-skills>0skills.sh installs
5elastic avatarobservability-manage-sloselastic/agent-skills>0skills.sh installs
6elastic avatarobservability-service-healthelastic/agent-skills>0skills.sh installs