Skip to main content

OpenTelemetry google-api-python-client Instrumentation

pypi

This library allows tracing requests made through the google-api-python-client library. Every call to HttpRequest.execute produces a CLIENT span named gcp.api/<methodId> with the following attributes:

  • rpc.method — the fully-qualified API method, e.g. storage.buckets.list

  • gcp.client.service — the GCP service, e.g. storage (OTel semconv)

  • http.request.method — the HTTP method

  • server.address / server.port — the request host (port only when non-default)

  • url.full — the request URL, with credentials and sensitive query values (e.g. X-Goog-Signature) redacted

On failure the span status is set to ERROR with error.type, and for googleapiclient.errors.HttpError the http.response.status_code is recorded.

Installation

pip install opentelemetry-instrumentation-google-api-client

Usage

from opentelemetry.instrumentation.google_api_client import (
    GoogleApiClientInstrumentor,
)
from googleapiclient.discovery import build

GoogleApiClientInstrumentor().instrument()

service = build("storage", "v1")
service.buckets().list(project="my-project").execute()

References

Metadata

Release files for opentelemetry-instrumentation-google-api-client 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for opentelemetry-instrumentation-google-api-client 0.1.0
File Size Uploaded Provenance Actions
opentelemetry_instrumentation_google_api_client-0.1.0.tar.gz 8.8 kB With provenance Details for opentelemetry_instrumentation_google_api_client-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for opentelemetry-instrumentation-google-api-client 0.1.0
File Interpreter ABI Platform Actions
opentelemetry_instrumentation_google_api_client-0.1.0-py3-none-any.whl Python 3 none any Details for opentelemetry_instrumentation_google_api_client-0.1.0-py3-none-any.whl

Total release size: 18.6 kB

Release files / opentelemetry_instrumentation_google_api_client-0.1.0.tar.gz

Download URL opentelemetry_instrumentation_google_api_client-0.1.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
83e1e6c7e4dc3c4c8c62faea6b113b37be36793cefc7dde9cf1c8823a2a4678e
BLAKE2b-256 checksum
How to use checksums
3ed6edf93347f0137503311c69d7ae46947ff1a5cdafdd421ecab1bf1ecdbc17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

Release files / opentelemetry_instrumentation_google_api_client-0.1.0-py3-none-any.whl

Download URL opentelemetry_instrumentation_google_api_client-0.1.0-py3-none-any.whl
Size 9.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e34ef6c7cef4cd665f7b3d2bd07799ef9eb2b838cd351707302a0b60e5be3de
BLAKE2b-256 checksum
How to use checksums
2b6d2f60dfc7624c99c4e82cfbc49a4e4a0204baebfd24959083468876766f01
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

Security for opentelemetry-instrumentation-google-api-client 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for opentelemetry_instrumentation_google_api_client-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page