Skip to content

Add Cloud Run worker sample (CloudRunId + OpenTelemetry plugins) - #376

Open
seanbollin wants to merge 5 commits into
mainfrom
gcp-cloud-run
Open

seanbollin wants to merge 5 commits into
mainfrom
gcp-cloud-run

Conversation

@seanbollin

Copy link
Copy Markdown

Runs a Temporal Worker on a Google Cloud Run worker pool using both GCP Cloud Run plugins together:

  • Cloud Run Id (temporalio.contrib.gcp.cloud_run.id.CloudRunIdPlugin) — sets the Temporal client identity from Cloud Run instance metadata (<instance_id>@<revision>).
  • Cloud Run OpenTelemetry (temporalio.contrib.gcp.cloud_run.opentelemetry) — exports Temporal Core metrics and traces over OTLP to a Google-Built OpenTelemetry Collector sidecar.

Deploy with the gcloud flow in the sample README, then start a Workflow from the repo root with uv run python -m gcp.cloud_run.starter.

The CloudRunId plugin is unreleased, so pyproject.toml pins temporalio to the SDK commit via a git source; drop the override once it ships on PyPI.

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