Skip to content

Add Cloud Run OpenTelemetry worker sample - #211

Draft
seanbollin wants to merge 6 commits into
mainfrom
sean/cloudrun-public-preview
Draft

seanbollin wants to merge 6 commits into
mainfrom
sean/cloudrun-public-preview

Conversation

@seanbollin

@seanbollin seanbollin commented Aug 14, 2026

Copy link
Copy Markdown

Runs a Temporal Worker on a Google Cloud Run worker pool using the Cloud Run OpenTelemetry plugin (Temporalio.Extensions.Gcp.CloudRun.OpenTelemetry), exporting Core SDK metrics and traces over OTLP to a Google-Built OpenTelemetry Collector sidecar.

Deploy: gcloud run worker-pools replace /tmp/worker-pool.yaml --region "$REGION". Run: temporal workflow execute --task-queue cloud-run-worker --type GreetingWorkflow --input '"Temporal"'. See the sample README.

The extension is unreleased on nuget.org, so it is restored from a committed local-packages/ feed until it ships.

seanbollin and others added 4 commits September 18, 2026 10:31
Move the sample from src/CloudRunWorker to src/Gcp/CloudRun/OpenTelemetry
(and its test to tests/Gcp/CloudRun/OpenTelemetry) so the layout mirrors the
merged SDK package Temporalio.Extensions.Gcp.CloudRun.OpenTelemetry and the
other SDKs' Cloud Run samples, leaving room for additional Cloud Run samples
(e.g. worker ID) under src/Gcp/CloudRun/.

- Rename the project/namespace to TemporalioSamples.Gcp.CloudRun.OpenTelemetry
  (updating the .sln, the tests project reference, and the Dockerfile paths and
  output dll name).
- Bump the Temporalio package family to 1.18.0 (the release that introduces the
  GCP Cloud Run OpenTelemetry package) and, as its required companion, NexusRpc
  to 0.4.0. The shared test project references this sample, so the whole repo
  must move together.
- Point the temporary local-feed nuget.config at the new sample path.

Verified with the merged package packed into the local feed: the full solution
restores and builds at 1.18.0/NexusRpc 0.4.0, the sample emits
TemporalioSamples.Gcp.CloudRun.OpenTelemetry.dll, and the test is discovered
under the new namespace.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@seanbollin
seanbollin force-pushed the sean/cloudrun-public-preview branch from 5da6606 to 0ddf8b9 Compare September 18, 2026 17:36
@seanbollin seanbollin changed the title Sean/cloudrun public preview Add Cloud Run OpenTelemetry worker sample Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant