Skip to content

Commit be698a5

Browse files
chore: Update generation configuration at Mon Feb 3 02:21:02 UTC 2025 (#2906)
1 parent 8d79b8d commit be698a5

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@ Samples are in the [`samples/`](https://github.com/googleapis/java-storage/tree/
283283
| Get Service Account | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/GetServiceAccount.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/GetServiceAccount.java) |
284284
| Quickstart Grpc Dp Sample | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/QuickstartGrpcDpSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/QuickstartGrpcDpSample.java) |
285285
| Quickstart Grpc Sample | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/QuickstartGrpcSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/QuickstartGrpcSample.java) |
286+
| Quickstart Open Telemetry Sample | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/QuickstartOpenTelemetrySample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/QuickstartOpenTelemetrySample.java) |
286287
| Quickstart Sample | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/QuickstartSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/QuickstartSample.java) |
287288
| Quickstart Storage Control Sample | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/QuickstartStorageControlSample.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/QuickstartStorageControlSample.java) |
288289
| Add Bucket Default Owner | [source code](https://github.com/googleapis/java-storage/blob/main/samples/snippets/src/main/java/com/example/storage/bucket/AddBucketDefaultOwner.java) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/java-storage&page=editor&open_in_editor=samples/snippets/src/main/java/com/example/storage/bucket/AddBucketDefaultOwner.java) |

generation_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
gapic_generator_version: 2.52.0
2-
googleapis_commitish: 2a3db2e19f48a139db9f40278c0217df110add9b
2+
googleapis_commitish: 3cf61b2df20eace09e6336c23f9e08859c0d87ae
33
libraries_bom_version: 26.53.0
44
libraries:
55
- api_shortname: storage

samples/snippets/src/main/java/com/example/storage/QuickstartOpenTelemetrySample.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616

1717
package com.example.storage;
1818

19-
20-
2119
import com.google.cloud.opentelemetry.propagators.XCloudTraceContextPropagator;
2220
import com.google.cloud.opentelemetry.trace.TraceExporter;
2321
import com.google.cloud.storage.Storage;
@@ -35,9 +33,10 @@
3533
public class QuickstartOpenTelemetrySample {
3634
public static void main(String... args) throws Exception {
3735
SpanExporter spanExporter = TraceExporter.createWithDefaultConfiguration();
38-
TextMapPropagator propagators = TextMapPropagator.composite(
39-
W3CTraceContextPropagator.getInstance(),
40-
new XCloudTraceContextPropagator(/*oneway=*/true));
36+
TextMapPropagator propagators =
37+
TextMapPropagator.composite(
38+
W3CTraceContextPropagator.getInstance(),
39+
new XCloudTraceContextPropagator(/*oneway=*/ true));
4140

4241
OpenTelemetrySdk openTelemetry =
4342
OpenTelemetrySdk.builder()
@@ -54,7 +53,6 @@ public static void main(String... args) throws Exception {
5453
StorageOptions options = StorageOptions.newBuilder().setOpenTelemetry(openTelemetry).build();
5554
Storage storage = options.getService();
5655
System.out.println("Created an instance of storage with OpenTelemetry configured");
57-
5856
}
5957
}
6058
// [END storage_enable_otel_tracing]

samples/snippets/src/test/java/com/example/storage/QuickstartSampleIT.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ public void testQuickstartStorageControl() throws Exception {
9191
public void testQuickstartOpenTelemetry() throws Exception {
9292
QuickstartOpenTelemetrySample.main();
9393
String got = stdOutCaptureRule.getCapturedOutputAsUtf8String();
94-
assertThat(got)
95-
.contains("Created an instance of storage with OpenTelemetry configured");
94+
assertThat(got).contains("Created an instance of storage with OpenTelemetry configured");
9695
}
9796
}

0 commit comments

Comments
 (0)