Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
sydney-munro committed Oct 16, 2024
1 parent 0286d4f commit bb7e011
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ public OpenTelemetryTraceUtil.Span startSpan(String spanName) {
}

@Override
public OpenTelemetryTraceUtil.Span startSpan(String spanName,
OpenTelemetryTraceUtil.Context parent) {
public OpenTelemetryTraceUtil.Span startSpan(
String spanName, OpenTelemetryTraceUtil.Context parent) {
return new Span();
}

Expand Down Expand Up @@ -82,6 +82,7 @@ public Scope makeCurrent() {
return new Scope();
}
}

static class Context implements OpenTelemetryTraceUtil.Context {
@Override
public Scope makeCurrent() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ private Span startSpan(String spanName) {

@Override
public Bucket create(Bucket bucket, Map<Option, ?> options) {
OpenTelemetryTraceUtil.Span otelSpan =
openTelemetryTraceUtil.startSpan("create(Bucket,Map)");
OpenTelemetryTraceUtil.Span otelSpan = openTelemetryTraceUtil.startSpan("create(Bucket,Map)");
Span span = startSpan(HttpStorageRpcSpans.SPAN_NAME_CREATE_BUCKET);
Scope scope = tracer.withSpan(span);
try (OpenTelemetryTraceUtil.Scope unused = otelSpan.makeCurrent()) {
Expand Down Expand Up @@ -1832,4 +1831,4 @@ private static StorageException buildStorageException(int statusCode, String sta
error.setMessage(statusMessage);
return translate(error);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ public void checkInstrumentation() {

@Test
public void noOpDoesNothing() {
StorageOptions storageOptions =
StorageOptions.http().build();
StorageOptions storageOptions = StorageOptions.http().build();
Storage storage = storageOptions.getService();
storage.create(BucketInfo.of(generator.randomBucketName()));
}
Expand Down

0 comments on commit bb7e011

Please sign in to comment.