Welcome to OpenTelemetry Android repository!
Before you start - see OpenTelemetry general contributing requirements and recommendations.
Make sure to review the projects license and sign the CNCF CLA. A signed CLA will be enforced by an automatic check once you submit a PR, but you can also sign it after opening your PR.
Java 17 or higher is required to build the projects in this repository. The built artifacts can be used with Android API Level 21 and higher. API levels 21 to 25 require desugaring of the core library.
- Clone the repository
git clone https://github.com/open-telemetry/opentelemetry-android.git
cd opentelemetry-android
- To build the android artifact, run the gradle wrapper with
assemble
:
./gradlew assemble
The output artifacts will be in instrumentation/build/outputs/
.
- To run the tests and code checks:
./gradlew check
We use spotless to enforce a consistent code style throughout the project. This includes reformatting (linting) of both source code and markdown.
Before submitting a PR, you should ensure that your code is linted by
running ./gradlew spotlessApply
and committing your changes.