opentelemetry: Publish grpc opentelemetry (#11187) (#11195)

publish grpc opentelemetry
This commit is contained in:
Vindhya Ningegowda 2024-05-09 15:38:02 -07:00 committed by GitHub
parent 8133318376
commit cc587e60c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 2 deletions

View File

@ -1,5 +1,8 @@
plugins {
id "java-library"
id "maven-publish"
id "ru.vyarus.animalsniffer"
}
description = 'gRPC: OpenTelemetry'
@ -17,6 +20,9 @@ dependencies {
"org.assertj:assertj-core:3.24.2"
annotationProcessor libraries.auto.value
signature libraries.signature.java
signature libraries.signature.android
}
tasks.named("jar").configure {

View File

@ -46,7 +46,7 @@ import java.util.Map;
*
* <p>GrpcOpenTelemetry uses {@link io.opentelemetry.api.OpenTelemetry} APIs for instrumentation.
* When no SDK is explicitly added no telemetry data will be collected. See
* {@link io.opentelemetry.sdk.OpenTelemetrySdk} for information on how to construct the SDK.
* {@code io.opentelemetry.sdk.OpenTelemetrySdk} for information on how to construct the SDK.
*
*/
public final class GrpcOpenTelemetry {
@ -279,7 +279,7 @@ public final class GrpcOpenTelemetry {
/**
* Sets the {@link io.opentelemetry.api.OpenTelemetry} entrypoint to use. This can be used to
* configure OpenTelemetry by returning the instance created by a
* {@link io.opentelemetry.sdk.OpenTelemetrySdkBuilder}.
* {@code io.opentelemetry.sdk.OpenTelemetrySdkBuilder}.
*/
public Builder sdk(OpenTelemetry sdk) {
this.openTelemetrySdk = sdk;