The OpenTelemetry API is the language-facing interface used to create and access telemetry instrumentation components. It commonly appears alongside the SDK when instrumentation is enabled, whether manually or automatically. section 4.3.1
In an automatic-instrumentation workflow, the API participates in these practical steps:
- Add dependencies that provide OpenTelemetry API and SDK capabilities. section 4.3.1
- Configure instrumentation through environment variables or language-specific mechanisms. section 4.3.1
- Provide at least a service name, with optional exporter and resource configuration. section 4.3.1
Java agent setup
A Java application can include the OpenTelemetry Java agent as a JAR using -javaagent; the agent dynamically instruments supported frameworks while the API and SDK supply instrumentation capabilities. section 4.3.1
