This module contains instrumentation code for Google Cloud Platform clients that use cloud.google.com/go libraries.
Installation
This instrumentation module requires Go v1.19 as the minimum version.
To add the module to your go.mod file run the following command in your project directory:
$ go get github.com/instana/go-sensor/instrumentation/cloud.google.com/go
Usage
The instrumentation is split by Google Cloud Platform services and follows the structure of the original library.
The general approach of this module is to replace cloud.google.com/go package in your imports section with the corresponding package of
github.com/instana/go-sensor/instrumentation/cloud.google.com/go. However, if your code references value types, such as
cloud.google.com/go/storage.ObjectAttrs or cloud.google.com/go/iam.Policy you might need to add a named import of the original library
as well.