Instrument a Java application with the Elastic Distribution of OpenTelemetry (EDOT) Java agent for automatic tracing, metrics, and logs.
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.This is the skill's description: the text your AI reads to decide when the skill applies.
elastic-edot-java-instrument/SKILL.md
---
name: observability-edot-java-instrument
description: >
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.
metadata:
author: elastic
version: 0.1.1
---
# EDOT Java Instrumentation
Read the setup guide before making changes:
- [EDOT Java setup](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/java/setup)
- [OpenTelemetry Java agent](https://opentelemetry.io/docs/zero-code/java/agent/)
- [EDOT Java configuration](https://www.elastic.co/docs/reference/opentelemetry/edot-sdks/java/configuration)
## Guidelines
1. Use `elastic-otel-javaagent.jar` (download from
[Maven Central](https://mvnrepository.com/artifact/co.elastic.otel/elastic-otel-javaagent/latest), not a Maven/Gradle
compile dependency)
1. Attach via `-javaagent:/path/to/elastic-otel-javaagent.jar` or