-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
_index.md
80 lines (67 loc) · 2.57 KB
/
_index.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
---
title: Java
description: >-
<img width="35" class="img-initial" src="/img/logos/32x32/Java_SDK.svg"
alt="Java"> A language-specific implementation of OpenTelemetry in Java.
aliases: [/java, /java/metrics, /java/tracing]
cascade:
vers:
instrumentation: 2.0.0
otel: 1.34.1
semconv: 1.23.1
weight: 18
---
{{% docs/languages/index-intro java /%}}
### Repositories
OpenTelemetry Java consists of the following repositories:
- [opentelemetry-java](https://github.com/open-telemetry/opentelemetry-java):
Components for manual instrumentation including API and SDK as well as
extensions, the OpenTracing shim.
- [opentelemetry-java-docs][]: Manual instrumentation examples.
- [opentelemetry-java-instrumentation](https://github.com/open-telemetry/opentelemetry-java-instrumentation):
Built on top of opentelemetry-java and provides a Java agent JAR that can be
attached to any Java 8+ application and dynamically injects bytecode to
capture telemetry from a number of popular libraries and frameworks.
- [opentelemetry-java-contrib](https://github.com/open-telemetry/opentelemetry-java-contrib):
Provides helpful libraries and standalone OpenTelemetry-based utilities that
don't fit the express scope of the OpenTelemetry Java or Java Instrumentation
projects. For example, JMX metric gathering.
### Components
See [components] for a complete list of published components.
### Releases
Published [releases][] are available on [maven central][]. We strongly recommend
using our BOM to keep the versions of the various components in sync.
#### 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
[releases]: https://github.com/open-telemetry/opentelemetry-java/releases
[components]: https://github.com/open-telemetry/opentelemetry-java#releases