Java code-generation for the OpenTelemetry Semantic Conventions.
Published releases are available on maven central. Replace {{version}}
with the latest released version:
<project>
<dependencies>
<dependency>
<groupId>io.opentelemetry.semconv</groupId>
<artifactId>opentelemetry-semconv</artifactId>
<version>{{version}}</version>
</dependency>
</dependencies>
</project>
dependencies {
implementation platform("io.opentelemetry.semconv:opentelemetry-semconv:{{version}}")
}
Java 17 or higher is required to build the projects in this repository. The built artifacts can be used on Java 8 or higher.
Requires docker.
In a shell, execute the following gradle tasks:
./gradlew generateSemanticConventions --console=plain
./gradlew spotlessApply
This will download the version
of open-telemetry/semantic-conventions
defined in the semanticConventionsVersion
variable of build.gradle.kts and
generate semantic conventions classes from the release contents.
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.
This repository is an extension of open-telemetry/opentelemetry-java. See opentelemetry-java contributors for code owners.
TODO(jack-berg): add code coverage badge?