Skip to content

Commit

Permalink
chore: generate libraries at Sat Oct 12 02:24:38 UTC 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
cloud-java-bot committed Oct 12, 2024
1 parent bedf410 commit 8811127
Show file tree
Hide file tree
Showing 5 changed files with 198 additions and 189 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public static void main(String... args) throws Exception {
public static void openTelemetryPublisherExample(String projectId, String topicId)
throws IOException, ExecutionException, InterruptedException {
Resource resource =
Resource.getDefault().toBuilder()
Resource.getDefault()
.toBuilder()
.put(ResourceAttributes.SERVICE_NAME, "publisher-example")
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ public static void main(String... args) throws Exception {

public static void openTelemetrySubscriberExample(String projectId, String subscriptionId) {
Resource resource =
Resource.getDefault().toBuilder()
Resource.getDefault()
.toBuilder()
.put(ResourceAttributes.SERVICE_NAME, "subscriber-example")
.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import com.google.pubsub.v1.TopicName;
import io.grpc.ManagedChannel;
import io.grpc.ManagedChannelBuilder;
import java.io.IOException;

public class UsePubSubEmulatorExample {
public static void main(String... args) throws Exception {
Expand Down Expand Up @@ -83,4 +82,4 @@ public static void main(String... args) throws Exception {
}
}
}
// [END pubsub_use_emulator]
// [END pubsub_use_emulator]
Loading

0 comments on commit 8811127

Please sign in to comment.