Skip to content

Commit bc3470a

Browse files
authored
chore: make OtelStorageDecorator package private again (googleapis#3260)
Accidentally opened after some debugging in googleapis#3255
1 parent d6587f4 commit bc3470a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

google-cloud-storage/src/main/java/com/google/cloud/storage/OtelStorageDecorator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
import org.checkerframework.checker.nullness.qual.Nullable;
6565

6666
@SuppressWarnings("DuplicatedCode")
67-
public final class OtelStorageDecorator implements Storage {
67+
final class OtelStorageDecorator implements Storage {
6868

6969
/** Becomes the {@code otel.scope.name} attribute in a span */
7070
private static final String OTEL_SCOPE_NAME = "cloud.google.com/java/storage";
@@ -1561,7 +1561,7 @@ static UnaryOperator<RetryContext> retryContextDecorator(OpenTelemetry otel) {
15611561
return String.format(Locale.US, "gs://%s/", bucket);
15621562
}
15631563

1564-
public static final class TracerDecorator implements Tracer {
1564+
private static final class TracerDecorator implements Tracer {
15651565
@Nullable private final Context parentContextOverride;
15661566
private final Tracer delegate;
15671567
private final Attributes baseAttributes;
@@ -1578,7 +1578,7 @@ private TracerDecorator(
15781578
this.spanNamePrefix = spanNamePrefix;
15791579
}
15801580

1581-
public static TracerDecorator decorate(
1581+
private static TracerDecorator decorate(
15821582
@Nullable Context parentContextOverride,
15831583
OpenTelemetry otel,
15841584
Attributes baseAttributes,

0 commit comments

Comments
 (0)