File tree Expand file tree Collapse file tree
gcp/cloud-run/opentelemetry/src/main/java/io/temporal/samples/gcp/cloudrun Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ public final class CloudRunWorker {
1818 private CloudRunWorker () {}
1919
2020 public static void main (String [] args ) throws IOException {
21+ // @@@SNIPSTART java-cloud-run-otel-worker
2122 ClientConfigProfile profile = ClientConfigProfile .load ();
2223 CloudRunOpenTelemetryPlugin telemetryPlugin = CloudRunOpenTelemetryPlugin .newBuilder ().build ();
2324
@@ -26,6 +27,7 @@ public static void main(String[] args) throws IOException {
2627 .setPlugins (telemetryPlugin )
2728 .build ();
2829 WorkflowServiceStubs service = WorkflowServiceStubs .newServiceStubs (serviceOptions );
30+ // @@@SNIPEND
2931 WorkflowClient client = WorkflowClient .newInstance (service , profile .toWorkflowClientOptions ());
3032 WorkerFactory factory = WorkerFactory .newInstance (client );
3133
You can’t perform that action at this time.
0 commit comments