$npx skillfedfor your agent

structlog-gcp

A structlog set of processors to output as Google Cloud Logging format

With conditionsPyPI MonitoringReleased Jul 2026414.4K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — structlog_gcp-0.5.1-py3-none-any.whl
v0.5.1 · released 2026-07-07 · Python >=3.10 · 1 runtime deps: structlog

Yes, if you run Python applications on Google Cloud infrastructure (GKE, Cloud Run, Cloud Functions) and use structlog for logging. The package is actively maintained, has low install friction, and solves a specific integration problem with no known vulnerabilities. Install with caution only if you are not using Google Cloud Logging or prefer a different structured logging approach.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later; structlog must be installed as a runtime dependency.
  • Low install friction with a single runtime dependency (structlog).
  • Actively maintained with recent releases; last commit 2026-08-11 and latest release 2026-07-07.

License · maintenance · safety

(unclear) — MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.

last release 2026-07-07 (38 days) · last repo commit 2026-08-11 · 47 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 414,354 downloads/mo, #6,835 on PyPI

Verify before relying

pip install structlog-gcp

import structlog
import structlog_gcp

processors = structlog_gcp.build_processors()
structlog.configure(processors=processors)
logger = structlog.get_logger()
logger.info("Hello world")
  • Whether the package works with structlog versions prior to a specific release, or if there are known incompatibilities.
  • Performance impact of JSON serialization and error-reporting overhead in high-volume logging scenarios.
  • Whether external agents (e.g., Fluent Bit, Stackdriver agent) are required to forward logs to Google Cloud Logging.
Same gist for agents: .md · .json

What it is and what it does

structlog-gcp is a formatter package that bridges structlog and Google Cloud Logging. It provides processors that convert structlog output into the JSON format expected by Google Cloud Logging, with built-in support for translating Python log levels to GCP equivalents and automatic error reporting to Google Error Reporting. The package is designed for applications running on GKE, Cloud Functions, or Cloud Run—environments where logs are written to stdout and picked up by Google's logging infrastructure.

The package handles three main concerns: formatting logs as JSON, managing context variables across loggers, and detecting exceptions to report them to Error Reporting. It offers a simple configuration path via `build_processors()` for typical use cases, and a lower-level `build_gcp_processors()` for applications that need finer control over the processor chain or custom JSON serializers.

Use it for

  • Format structlog output for GKE applications so logs appear correctly in Google Cloud Logging console.
  • Automatically report exceptions and CRITICAL messages to Google Error Reporting dashboard.
  • Configure Cloud Run services to emit structured logs with service name and revision from environment variables.
  • Integrate structlog with custom processors while maintaining Google Cloud Logging compatibility.
  • Bind request-scoped context variables to logs across multiple logger calls in a single request.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you run Python applications on Google Cloud infrastructure (GKE, Cloud Run, Cloud Functions) and use structlog for logging.

The package is actively maintained, has low install friction, and solves a specific integration problem with no known vulnerabilities. Install with caution only if you are not using Google Cloud Logging or prefer a different structured logging approach.

Install

structlog-gcp on PyPI

Before you install

Low install friction with a single runtime dependency (structlog). Actively maintained with recent releases; last commit 2026-08-11 and latest release 2026-07-07. Supports current Python versions (3.10–3.13).

Requires Python 3.10 or later; structlog must be installed as a runtime dependency.

License in practice

MIT license permits unrestricted use, modification, and distribution with minimal obligations—suitable for both open-source and commercial projects.

Quickstart

pip install structlog-gcp

import structlog
import structlog_gcp

processors = structlog_gcp.build_processors()
structlog.configure(processors=processors)
logger = structlog.get_logger()
logger.info("Hello world")

Verify before relying

  • Whether the package works with structlog versions prior to a specific release, or if there are known incompatibilities.
  • Performance impact of JSON serialization and error-reporting overhead in high-volume logging scenarios.
  • Whether external agents (e.g., Fluent Bit, Stackdriver agent) are required to forward logs to Google Cloud Logging.

Package facts

LicenseNot declared unclear
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
1 package
structlog
MaintenanceActively maintained 38 days since the last release
Last repo commit
First released
Downloads414,354 / month, #6,835 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaProgramming Language :: PythonProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPy

Evidence: structlog_gcp-0.5.1-py3-none-any.whl

Tags

Capabilities
google cloud logging formatterstructlog gcp integrationcloud logging json outputgke logging configurationgoogle cloud error reportingstructured logging gcpcloud run logging setup
Topics
gcp-integrationstructured-logging

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 › “google cloud logging formatter”

  • structlog-gcpConfigures structlog to output logs in Google Cloud Logging JSON…
  • glogA simplified Google-style logging wrapper that configures Python's…
  • google-cloud-appengine-loggingClient library for Google Cloud AppEngine Logging that sends…

Give your agent the search over MCP, or paste the wish link into any chat.

More Monitoring packages

tqdm Worth it
PyPI · Libraries · released Jul 2026

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.

copyleftpure Python · 3.8+
648.6Mdownloads / mo
opentelemetry-semantic-conventions Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
542.9Mdownloads / mo
opentelemetry-sdk Worth it
PyPI · Monitoring · released Jul 2026

Provides the reference implementation of the OpenTelemetry API for collecting and exporting traces, metrics, and logs from Python applications.

Apache-2.0pure Python · 3.10+
521.8Mdownloads / mo
opentelemetry-api With conditions
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
463.8Mdownloads / mo
opentelemetry-exporter-otlp-proto-http Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
409.9Mdownloads / mo
opentelemetry-instrumentation Worth it
PyPI · Monitoring · released Jul 2026

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.

Apache-2.0pure Python · 3.10+
393.5Mdownloads / mo

See also pytest-structlog · structlog-pretty · structlog-sentry · macwinnie-enhanced-logging · django-structlog · google-cloud-logging · structlog · opentelemetry-exporter-gcp-logging · opentelemetry-instrumentation-structlog · exasol-error-reporting