You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Welcome to the OpenTelemetry Java Contrib Repository!
4
+
5
+
## Introduction
6
+
7
+
This repository focuses on providing tools and utilities for Java-based observability, such as remote JMX metric gathering and reporting. We’re excited to have you here! Whether you’re fixing a bug, adding a feature, or suggesting an idea, your contributions are invaluable.
4
8
5
9
Before submitting new features or changes to current functionality, it is recommended to first
6
10
[open an issue](https://github.com/open-telemetry/opentelemetry-java-contrib/issues/new)
7
11
and discuss your ideas or propose the changes you wish to make.
8
12
9
-
### Building
13
+
Questions? Ask in the OpenTelemetry [java channel](https://cloud-native.slack.com/archives/C014L2KCTE3)
14
+
15
+
Pull requests for bug fixes are always welcome!
16
+
17
+
## Pre-requisites
18
+
19
+
To work with this repository, ensure you have:
20
+
21
+
### Tools:
22
+
23
+
Java 17 or higher
24
+
25
+
### Platform Notes:
26
+
27
+
macOS/Linux: Ensure JAVA_HOME is set correctly.
28
+
29
+
## Workflow
30
+
31
+
1. Fork the repository
32
+
2. Clone locally
33
+
3. Create a branch before working on an issue
34
+
35
+
## Local Run/Build
10
36
11
37
In order to build and test this whole repository you need JDK 11+.
12
38
@@ -22,21 +48,35 @@ the Sonatype OSS snapshots repository at `https://oss.sonatype.org/content/repos
22
48
Building using Java 11+:
23
49
24
50
```bash
25
-
java -version
51
+
$ java -version
52
+
```
53
+
54
+
```bash
55
+
$ ./gradlew assemble
26
56
```
27
57
58
+
## Testing
59
+
28
60
```bash
29
-
./gradlew assemble
61
+
$ ./gradlew test
30
62
```
31
63
32
-
### Style guide
64
+
### Some modules have integration tests
33
65
34
-
See
35
-
the [Style guide](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/contributing/style-guideline.md)
36
-
from the opentelemetry-java-instrumentation repository.
66
+
```
67
+
$ ./gradlew integrationTest
68
+
```
69
+
70
+
Follow the Java Instrumentation [Style Guide](https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/docs/contributing/style-guideline.md) from the opentelemetry-java-instrumentation repository.
37
71
38
-
### Gradle conventions
72
+
Failure? Check logs for errors or mismatched dependencies.
73
+
74
+
## Gradle conventions
39
75
40
76
- Use kotlin instead of groovy
41
77
- Plugin versions should be specified in `settings.gradle.kts`, not in individual modules
42
78
- All modules use `plugins { id("otel.java-conventions") }`
79
+
80
+
## Further Help
81
+
82
+
Join [#otel-java](https://cloud-native.slack.com/archives/C014L2KCTE3) on OpenTelemetry Slack
0 commit comments