
opentelemetry-java-instrumentation
OpenTelemetry auto-instrumentation and instrumentation libraries for Java
The Lens
If you run Java apps and want observability (traces, metrics, logs) without rewriting your code, this is how you get it. One JAR file, one JVM flag, and it auto-instruments your Spring Boot, Kafka, gRPC, JDBC, and dozens of other libraries. Zero code changes. CNCF project, Apache 2.0, completely free.
The agent itself is trivial to deploy. Add it to your JVM startup, point it at an OTLP endpoint, done. The real ops burden is the backend: you need somewhere to send the data. OpenTelemetry Collector plus Jaeger or Grafana Tempo is the common self-hosted stack. That's a meaningful setup, but it's a one-time cost shared across all your services.
Solo devs and small teams can point it at a managed backend (Grafana Cloud free tier, Honeycomb, Datadog) and skip the infrastructure entirely. Larger teams running their own Grafana/Tempo stack get full control and zero per-host licensing. The agent is vendor-neutral by design, so you're never locked to one backend.
The catch: it's Java-only. If you're running a polyglot stack, you need separate OpenTelemetry agents for Python, Node, Go, etc. And "zero code changes" means "zero code changes until you need custom spans," at which point you're adding SDK calls anyway.
Free vs Self-Hosted vs Paid
fully free**Free tier:** Everything. The agent is 100% free and open source under Apache 2.0. No paid version exists.
**Self-hosted:** The agent is a single JAR. No infrastructure needed for the agent itself. You need an OTLP-compatible backend (self-hosted Jaeger/Tempo or a managed service).
**Paid options:** None from OpenTelemetry. Commercial vendors (Splunk, Datadog, Grafana Cloud) sell managed backends that consume the telemetry this agent produces. The agent is vendor-neutral.
Completely free. The cost is in the backend, not the instrumentation.
License: Apache License 2.0
Use freely. Patent grant included.
Commercial use: ✓ Yes
About
- Owner
- OpenTelemetry - CNCF (Organization)
- Stars
- 2,496
- Forks
- 1,079
Explore Further
More tools in the directory
Get tools like this delivered weekly
The Open Source Drop — the best new open source tools, analyzed. Free.