Skip to content

Conversation

@andrewslotin
Copy link

This PR adds instrumentation for google-cloud-storage client by wrapping the google.cloud.storage._http.Connection.api_request() and extracting span data from the request made to Google Cloud Storage JSON API.

Since storage.Client does not use this API to upload and download blobs, additional wrappers are needed to instrument storage.blob.Blob.{upload,download}_* calls.

Batches are implemented as a wrapper for storage._http.Connection and thus also needed a special handling.

Copy link
Contributor

@pglombardo pglombardo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work @andrewslotin

@andrewslotin andrewslotin merged commit ed0ddab into master Sep 28, 2020
@andrewslotin andrewslotin deleted the instrument_gcs branch September 28, 2020 14:43
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.

3 participants