Skip to content

Commit

Permalink
Merge pull request #146 from instana/reduce_min_go_version_for_gcs
Browse files Browse the repository at this point in the history
Require go1.11 and cloud.google.com/go/[email protected] for GCS instrumentation
  • Loading branch information
Andrew Slotin authored Aug 31, 2020
2 parents 04e9285 + f0af29d commit 3be80d1
Show file tree
Hide file tree
Showing 17 changed files with 76 additions and 48 deletions.
8 changes: 6 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@ matrix:
include:
- go: tip
- go: 1.9.x
env: VENDOR_DEPS=yes
env:
- VENDOR_DEPS=yes
- EXCLUDE_DIRS=./instrumentation/cloud.google.com/go
- go: 1.10.x
env: VENDOR_DEPS=yes
env:
- VENDOR_DEPS=yes
- EXCLUDE_DIRS=./instrumentation/cloud.google.com/go
- go: 1.11.x
env: GO111MODULE=on
- go: 1.12.x
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ This module contains instrumentation code for Google Cloud Platform clients that
Installation
------------

Unlike the Instana Go sensor, this instrumentation module requires Go v1.11+ which is the minimal version for `cloud.google.com/go`.

To add the module to your `go.mod` file run the following command in your project directory:

```bash
Expand Down
20 changes: 16 additions & 4 deletions instrumentation/cloud.google.com/go/go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
module github.com/instana/go-sensor/instrumentation/cloud.google.com/go

go 1.14
go 1.11

require (
cloud.google.com/go v0.64.0
cloud.google.com/go/storage v1.10.0
cloud.google.com/go v0.56.0
cloud.google.com/go/storage v1.7.0
github.com/golang/protobuf v1.4.2 // indirect
github.com/google/go-cmp v0.5.1 // indirect
github.com/instana/go-sensor v1.17.0
github.com/opentracing/opentracing-go v1.2.0
google.golang.org/api v0.30.0
go.opencensus.io v0.22.4 // indirect
golang.org/x/net v0.0.0-20200813134508-3edf25e44fcc // indirect
golang.org/x/sys v0.0.0-20200803210538-64077c9b5642 // indirect
golang.org/x/text v0.3.3 // indirect
golang.org/x/tools v0.0.0-20200817023811-d00afeaade8f // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
google.golang.org/api v0.22.0
google.golang.org/genproto v0.0.0-20200815001618-f69a88009b70 // indirect
google.golang.org/grpc v1.31.0 // indirect
google.golang.org/protobuf v1.25.0 // indirect
honnef.co/go/tools v0.0.1-2020.1.4 // indirect
)
64 changes: 25 additions & 39 deletions instrumentation/cloud.google.com/go/go.sum

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions instrumentation/cloud.google.com/go/iam/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package iam provides Instana tracing instrumentation for for Google Cloud IAM clients that use cloud.google.com/go/iam

package iam
3 changes: 2 additions & 1 deletion instrumentation/cloud.google.com/go/iam/iam.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Package iam provides Instana tracing instrumentation for for Google Cloud IAM clients that use cloud.google.com/go/iam
// +build go1.11

package iam

import (
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/internal/trace.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package internal

import (
Expand Down
2 changes: 1 addition & 1 deletion instrumentation/cloud.google.com/go/storage/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Instana instrumentation for Google Cloud Storage
================================================

This module contains instrumentation code for Google Cloud Storage clients that use `cloud.google.com/go/storage` library.
This module contains instrumentation code for Google Cloud Storage clients that use `cloud.google.com/go/storage` library starting from `v1.7.0` and above.

[![GoDoc](https://img.shields.io/static/v1?label=godoc&message=reference&color=blue)][godoc]

Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/acl.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/bucket.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/copy.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down
3 changes: 3 additions & 0 deletions instrumentation/cloud.google.com/go/storage/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Package storage provides Instana tracing instrumentation for Google Cloud Storage clients that use cloud.google.com/go/storage

package storage
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/hmac.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/iam.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/reader.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down
3 changes: 2 additions & 1 deletion instrumentation/cloud.google.com/go/storage/storage.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Package storage provides Instana tracing instrumentation for Google Cloud Storage clients that use cloud.google.com/go/storage
// +build go1.11

package storage

import (
Expand Down
2 changes: 2 additions & 0 deletions instrumentation/cloud.google.com/go/storage/writer.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// +build go1.11

package storage

import (
Expand Down

0 comments on commit 3be80d1

Please sign in to comment.