Skip to content

Commit 72b0be7

Browse files
committed
fix lint
1 parent d0e7cd9 commit 72b0be7

2 files changed

Lines changed: 7 additions & 8 deletions

File tree

java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/CustomOpenTelemetryMetricsProvider.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
* mode.
5252
*
5353
* <p>This provider is additive to the default Cloud Monitoring export on non-Omni clients: the
54-
* caller-owned destination recorded here is an independent opt-in and keeps recording even when
55-
* the Cloud Monitoring (GCM) sink is disabled via {@link
54+
* caller-owned destination recorded here is an independent opt-in and keeps recording even when the
55+
* Cloud Monitoring (GCM) sink is disabled via {@link
5656
* SpannerOptions.Builder#setBuiltInMetricsEnabled(boolean)} or the {@code
5757
* SPANNER_DISABLE_BUILTIN_METRICS} environment variable; those switches drop only the GCM sink
5858
* there. On {@link SpannerOptions.InstanceType#OMNI} clients, where the GCM sink is never active,

java-spanner/google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2881,12 +2881,11 @@ public boolean isEnableBuiltInMetrics() {
28812881
* {@link DefaultMetricsProvider} is used with an {@link InstanceType#OMNI} client, or when a
28822882
* custom provider is used with an {@link InstanceType#OMNI} client and an explicit
28832883
* built-in-metrics disable or environment kill-switch has silenced the custom destination. A
2884-
* custom provider records the same
2885-
* built-in metrics to an independent export destination controlled separately from the Cloud
2886-
* Monitoring sink. On a non-OMNI client the custom provider is preserved even when the Cloud
2887-
* Monitoring sink is disabled, since that switch only turns off the Cloud Monitoring sink. {@link
2888-
* #toBuilder()} preserves the provider as originally set, so rebuilding the options re-applies
2889-
* these rules against the new configuration.
2884+
* custom provider records the same built-in metrics to an independent export destination
2885+
* controlled separately from the Cloud Monitoring sink. On a non-OMNI client the custom provider
2886+
* is preserved even when the Cloud Monitoring sink is disabled, since that switch only turns off
2887+
* the Cloud Monitoring sink. {@link #toBuilder()} preserves the provider as originally set, so
2888+
* rebuilding the options re-applies these rules against the new configuration.
28902889
*/
28912890
public MetricsProvider getBuiltInMetricsProvider() {
28922891
return resolvedMetricsProvider;

0 commit comments

Comments
 (0)