opentelemetry-exporter-gcp-logging
Google Cloud Logging exporter for OpenTelemetry
Decision gist · record as of 2026-08-14
Yes, but with strong conditions: install only if you are maintaining an existing application already using this exporter or if you need to migrate legacy logging to OpenTelemetry while staying on Cloud Logging. For new projects on GCP, use native OTLP exporters instead per the official migration guide. The package is actively maintained and has no known vulnerabilities, but its deprecation status means it will not receive new features.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires google-cloud-logging credentials configured for GCP authentication (typically via Application Default Credentials or explicit service account key).
- Low install friction with a pure-Python wheel.
- Actively maintained as of August 2026, though the package is explicitly deprecated in favor of native OTLP ingestion via Google Cloud's Telemetry API.
License · maintenance · safety
Apache-2.0 (permissive) — Apache-2.0 permissive license allows use in most projects without restriction, including commercial applications.
last release 2026-08-03 (11 days) · last repo commit 2026-08-12 · 83 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 7,726,410 downloads/mo, #1,702 on PyPI
Alternatives
Verify before relying
pip install opentelemetry-exporter-gcp-logging
from opentelemetry.exporter.cloud_logging import CloudLoggingExporter
from opentelemetry.sdk._logs import LoggerProvider
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
logger_provider = LoggerProvider()
exporter = CloudLoggingExporter(default_log_name='my_log')
logger_provider.add_log_record_processor(BatchLogRecordProcessor(exporter))- Whether the deprecation notice means this package will be removed or simply no longer receive feature updates.
- Performance characteristics when exporting high-volume logs compared to native OTLP ingestion.
- Compatibility with custom log attributes and structured JSON output beyond the documented examples.
What it is and what it does
This package bridges OpenTelemetry's logging framework to Google Cloud Logging, allowing you to export application logs as structured records within GCP's observability stack. It wraps the google-cloud-logging client and integrates with OpenTelemetry's SDK to attach resource metadata, service identifiers, and trace context to each log entry.
However, the package is explicitly deprecated. Google Cloud now recommends using standard OpenTelemetry Protocol (OTLP) exporters instead, which provide native ingestion for logs, traces, and metrics through a single unified API. If you are starting a new project on GCP, the migration guide in the repository should be your first stop; this exporter is primarily useful for maintaining existing applications that already depend on it.
Use it for
- Export application logs from Python services running on GKE, Cloud Run, or GCE to Cloud Logging with OpenTelemetry metadata.
- Write structured JSON logs to stdout in GCP environments using SimpleLogRecordProcessor for agent-based ingestion.
- Attach service name, instance ID, and trace context to logs for correlation with traces and metrics in Cloud Console.
- Migrate legacy Python logging to OpenTelemetry while keeping logs in Cloud Logging during a transition period.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, but with strong conditions: install only if you are maintaining an existing application already using this exporter or if you need to migrate legacy logging to OpenTelemetry while staying on Cloud Logging.
For new projects on GCP, use native OTLP exporters instead per the official migration guide. The package is actively maintained and has no known vulnerabilities, but its deprecation status means it will not receive new features.
Install
opentelemetry-exporter-gcp-logging on PyPI
Before you install
Low install friction with a pure-Python wheel. Actively maintained as of August 2026, though the package is explicitly deprecated in favor of native OTLP ingestion via Google Cloud's Telemetry API.
Requires google-cloud-logging credentials configured for GCP authentication (typically via Application Default Credentials or explicit service account key).
License in practice
Apache-2.0 permissive license allows use in most projects without restriction, including commercial applications.
Quickstart
pip install opentelemetry-exporter-gcp-logging
from opentelemetry.exporter.cloud_logging import CloudLoggingExporter
from opentelemetry.sdk._logs import LoggerProvider
from opentelemetry.sdk._logs.export import BatchLogRecordProcessor
logger_provider = LoggerProvider()
exporter = CloudLoggingExporter(default_log_name='my_log')
logger_provider.add_log_record_processor(BatchLogRecordProcessor(exporter))
Verify before relying
- Whether the deprecation notice means this package will be removed or simply no longer receive feature updates.
- Performance characteristics when exporting high-volume logs compared to native OTLP ingestion.
- Compatibility with custom log attributes and structured JSON output beyond the documented examples.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 5 packagesgoogle-cloud-loggingopentelemetry-sdkopentelemetry-apiopentelemetry-resourcedetector-gcptyping-extensions |
| Maintenance | Actively maintained 11 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 7,726,410 / month, #1,702 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.9 |
Evidence: opentelemetry_exporter_gcp_logging-1.14.0a0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “opentelemetry google cloud logging exporter”
- opentelemetry-exporter-gcp-loggingExports OpenTelemetry logs to Google Cloud Logging, integrating…
- opentelemetry-exporter-gcp-monitoringExports OpenTelemetry metrics to Google Cloud Monitoring, but is…
- opentelemetry-exporter-gcp-traceExports OpenTelemetry traces to Google Cloud Trace for distributed…
Give your agent the search over MCP, or paste the wish link into any chat.
More Monitoring packages
Wraps any iterable to display a real-time progress bar in the terminal or Jupyter notebook, showing iteration count, elapsed time, and estimated time remaining.
Provides generated Python code for OpenTelemetry semantic conventions, enabling standardized attribute naming and constant definitions for instrumentation and telemetry collection.
Install it if you are using OpenTelemetry and want to follow semantic conventions correctly.
Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.
Provides the abstract API and interfaces for OpenTelemetry instrumentation in Python, defining how to emit traces, metrics, and logs without tying code to a specific SDK implementation.
Exports OpenTelemetry observability data to an OpenTelemetry Collector using Protobuf-encoded messages over HTTP.
Install it if you are using OpenTelemetry in Python and need to send data to a Collector over HTTP.
Provides automatic instrumentation commands and programmatic APIs to inject distributed tracing into Python applications without code changes, detecting and instrumenting packages used by your program.
Install it if you need distributed tracing without code changes and have compatible instrumented packages in your environment.
See also opentelemetry-exporter-gcp-monitoring · opentelemetry-exporter-gcp-trace · opentelemetry-resourcedetector-gcp · opentelemetry-exporter-otlp-proto-grpc · opentelemetry-propagator-gcp · opentelemetry-exporter-otlp · azure-monitor-opentelemetry-exporter · opentelemetry-exporter-jaeger · opentelemetry-exporter-otlp-proto-common