Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[zh] tranlate java language index #5060

Merged
merged 5 commits into from
Aug 22, 2024
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 82 additions & 0 deletions content/zh/docs/languages/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
title: Java
description: >-
<img width="35" class="img-initial" src="/img/logos/32x32/Java_SDK.svg"
alt="Java"> OpenTelemetry 的特定语言实现 Java.
aliases: [/java, /java/metrics, /java/tracing]
cascade:
vers:
instrumentation: 2.7.0
otel: 1.41.0
semconv: 1.26.0
weight: 18
default_lang_commit: 20c51c53
---

这是 OpenTelemetry Java 文档。OpenTelemetry 是一个可观测性框架 -- 一个API、SDK和工具,旨在帮助生成和收集应用程序遥测数据,比如指标、日志和追踪。本文档旨在帮助您了解如何开始使用 OpenTelemetry Java。

### Repositories

OpenTelemetry Java 由以下仓库组成:

- [opentelemetry-java](https://github.com/open-telemetry/opentelemetry-java):
用于手动埋点的组件,包括 API 和 SDK, 也包括扩展和 OpenTracing shim。
- [opentelemetry-java-docs][]: 手动埋点样例。
- [opentelemetry-java-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation):
建立在 opentelemetry-java 之上,并提供一个 Java agent JAR,可以附加到任何 Java 8+ 应用程序,并动态注入字节码,从许多流行的库和框架中捕获遥测数据。
- [opentelemetry-java-contrib](https://github.com/open-telemetry/opentelemetry-java-contrib):
提供有用的库和独立的基于 OpenTelemetry 的实用程序,这些实用程序不属于 OpenTelemetry Java 或 Java Instrumentation 项目的明确范围。
例如,JMX 指标收集。
- [semantic-conventions-java](https://github.com/open-telemetry/semantic-conventions-java):
[OpenTelemetry 语义约定](/docs/specs/semconv/)的 Java 实现. 例如,
`ResourceAttributes.SERVICE_NAME`。
- [opentelemetry-proto-java](https://github.com/open-telemetry/opentelemetry-proto-java):
[OpenTelemetry 协议 (OTLP)](/docs/specs/otlp/) 的 Java 绑定。

### 组件

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

###

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

#### Maven

```xml
<project>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-bom</artifactId>
<version>{{% param vers.otel %}}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>io.opentelemetry</groupId>
<artifactId>opentelemetry-api</artifactId>
</dependency>
</dependencies>
</project>
```

#### Gradle

```kotlin
dependencies {
implementation(platform("io.opentelemetry:opentelemetry-bom:{{% param vers.otel %}}"))
implementation("io.opentelemetry:opentelemetry-api")
}
```

[maven central]: https://mvnrepository.com/artifact/io.opentelemetry
[opentelemetry-java-docs]:
https://github.com/open-telemetry/opentelemetry-java-docs#java-opentelemetry-examples

Check failure on line 80 in content/zh/docs/languages/_index.md

View workflow job for this annotation

GitHub Actions / TEXT linter

textlint terminology error

Incorrect term: “java”, use “Java” instead
[releases]: https://github.com/open-telemetry/opentelemetry-java/releases
[组件]: https://github.com/open-telemetry/opentelemetry-java#releases
Loading