Java

Java 以 Java 语言实现特定的 OpenTelemetry。

This is the OpenTelemetry Java documentation. OpenTelemetry is an observability framework – an API, SDK, and tools that are designed to aid in the generation and collection of application telemetry data such as metrics, logs, and traces. This documentation is designed to help you understand how to get started using OpenTelemetry Java.

Status and Releases

The current status of the major functional components for OpenTelemetry Java is as follows:

TracesMetricsLogs
StableStableStable

For releases, including the latest release, see Releases.

仓库

OpenTelemetry Java 由以下仓库组成:

组件

查看组件以获取已发布组件的完整列表。

发行版

已经发布的发行版可以在 maven 中央仓库上找到。 我们强烈推荐使用我们的 BOM 来保持各种组件的版本同步。

Maven

<project>
  <dependencyManagement>
    <dependencies>
      <dependency>
        <groupId>io.opentelemetry</groupId>
        <artifactId>opentelemetry-bom</artifactId>
        <version>1.42.1</version>
        <type>pom</type>
        <scope>import</scope>
      </dependency>
    </dependencies>
  </dependencyManagement>
  <dependencies>
    <dependency>
      <groupId>io.opentelemetry</groupId>
      <artifactId>opentelemetry-api</artifactId>
    </dependency>
  </dependencies>
</project>

Gradle

dependencies {
  implementation(platform("io.opentelemetry:opentelemetry-bom:1.42.1"))
  implementation("io.opentelemetry:opentelemetry-api")
}

Intro to OpenTelemetry Java

Intro to the OpenTelemetry Java ecosystem

Getting Started by Example

Get telemetry for your app in less than 5 minutes!

Instrumentation ecosystem

Instrumentation ecosystem in OpenTelemetry Java

Record Telemetry with API

Manage Telemetry with SDK

Configure the SDK

Examples

Registry

Instrumentation libraries, exporters and other useful components for OpenTelemetry Java