Skip to content

Commit 853913a

Browse files
committed
chore: Improve the javadoc for getOtel()
1 parent 51c1a3f commit 853913a

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

java-datastore/google-cloud-datastore/src/main/java/com/google/cloud/datastore/DatastoreOpenTelemetryOptions.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ public boolean isExportBuiltinMetricsToGoogleCloudMonitoring() {
9191
}
9292

9393
/**
94-
* Returns the custom {@link OpenTelemetry} instance, if one was provided.
94+
* Returns the configured custom {@link OpenTelemetry} instance.
9595
*
96-
* @return the custom {@link OpenTelemetry} instance.
96+
* @return the configured {@link OpenTelemetry} instance, or the global instance if a custom one
97+
* was not provided. If there is no global instance, then {@code OpenTelemetry.noop()} is
98+
* returned.
9799
*/
98100
@Nonnull
99101
public OpenTelemetry getOpenTelemetry() {

0 commit comments

Comments
 (0)