Skip to content

Add GCP OpenTelemetry plugin#1658

Draft
eamsden wants to merge 1 commit into
mainfrom
ea/gcp-opentelemetry-plugin
Draft

Add GCP OpenTelemetry plugin#1658
eamsden wants to merge 1 commit into
mainfrom
ea/gcp-opentelemetry-plugin

Conversation

@eamsden

@eamsden eamsden commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add temporalio.contrib.gcp.OpenTelemetryPlugin, a thin GCP-focused wrapper around the existing OpenTelemetry plugin
  • export workflow traces and Core metrics over OTLP/gRPC to a local collector sidecar, with Cloud Run-aware service and revision defaults
  • keep tracer-provider and runtime ownership explicit, including flush/shutdown helpers and worker-stop opt-in
  • add the gcp-opentelemetry dependency extra, usage documentation, and focused tests

The worker does not use Google Cloud clients, exporters, or resource detection directly. The collector is responsible for authenticating, enriching telemetry with GCP resource attributes, and exporting it to Google Cloud.

Related implementations

Validation

  • 59 focused and regression tests passed
  • ruff check --select I .
  • ruff format --check .
  • pyright
  • mypy
  • basedpyright
  • documentation generation
  • uv lock --check
  • default plugin construction/shutdown smoke test

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