GoogleCloudPlatform / opentelemetry-operations-java

Apache License 2.0
73 stars 39 forks source link

Open-Telemetry Operations Exporters for Java

Maven Central

Provides OpenTelemetry Exporters for Google Cloud Operations.

To get started with instrumentation in Google Cloud, see Generate traces and metrics with Java.

To learn more about instrumentation and observability, including opinionated recommendations for Google Cloud Observability, visit Instrumentation and observability.

Building

[!IMPORTANT] This project requires Java 11 to build and test. All artifacts published from this project support Java 8 or higher, unless otherwise noted.

This project requires a mock server for Google Cloud APIs. To build and test, do the following:

$ ./gradlew test

Note: This project uses Test Containers, which requires docker to be runnable locally by the current users. Please verify docker run hello-world works, and if not configure your local docker before building.

Contributing

See contributing guide.

Enforcing Style

This project uses the spotless plugin to enforce style. You can automatically correct any issues by running:

$ ./gradlew spotlessApply

Google Cloud Trace Exporter

See Tracing Readme for installation and usage instructions.

Google Cloud Monitoring Exporter

See Metrics Readme for installation and usage instructions.

Google Cloud Autoconfigure module

Note: This is an alpha-release.

See Autoconfigure Readme for installation and usage instructions.