diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 6d6841f4d94..53493602b6b 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -15,7 +15,7 @@ A clear and concise description of what the bug is. - OS: [e.g. iOS] - Architecture: [e.g. x86, i386] -- Go Version: [e.g. 1.14] +- Go Version: [e.g. 1.15] - opentelemetry-go version: [e.g. v0.14.0, 3c7face] ### Steps To Reproduce diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98613439e8c..9c30080102c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,7 +8,7 @@ env: # Path to where test results will be saved. TEST_RESULTS: /tmp/test-results # Default minimum version of Go to support. - DEFAULT_GO_VERSION: 1.14 + DEFAULT_GO_VERSION: 1.15 jobs: lint: runs-on: ubuntu-latest @@ -109,7 +109,7 @@ jobs: compatibility-test: strategy: matrix: - go-version: [1.15, 1.14] + go-version: [1.16, 1.15] os: [ubuntu-latest, macos-latest, windows-latest] # GitHub Actions does not support arm* architectures on default # runners. It is possible to acomplish this with a self-hosted runner diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index d9a45874c15..8de285f94e2 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -13,7 +13,7 @@ jobs: ref: ${{ github.head_ref }} - uses: actions/setup-go@v2 with: - go-version: '^1.14.0' + go-version: '^1.15.0' - uses: evantorrie/mott-the-tidier@v1-beta id: modtidy with: diff --git a/CHANGELOG.md b/CHANGELOG.md index 8078e631b84..9ad961384fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm `NewSplitDriver` now automatically implements an internal `noopDriver` for `SplitConfig` fields that are not initialized. (#1798) - `resource.New()` now creates a Resource without builtin detectors. Previous behavior is now achieved by using `WithBuiltinDetectors` Option. (#1810) - Move the `Event` type from the `go.opentelemetry.io/otel` package to the `go.opentelemetry.io/otel/sdk/trace` package. (#1846) +- CI builds validate against last two versions of Go, dropping 1.14 and adding 1.16. (#1865) - BatchSpanProcessor now report export failures when calling `ForceFlush()` method. (#1860) - `Set.Encoded(Encoder)` no longer caches the result of an encoding. (#1855) - Renamed `CloudZoneKey` to `CloudAvailabilityZoneKey` in Resource semantic conventions according to spec. (#1871) diff --git a/README.md b/README.md index e5ede84f9ac..92adc4e0162 100644 --- a/README.md +++ b/README.md @@ -44,16 +44,16 @@ This project is tested on the following systems. | OS | Go Version | Architecture | | ------- | ---------- | ------------ | +| Ubuntu | 1.16 | amd64 | | Ubuntu | 1.15 | amd64 | -| Ubuntu | 1.14 | amd64 | +| Ubuntu | 1.16 | 386 | | Ubuntu | 1.15 | 386 | -| Ubuntu | 1.14 | 386 | +| MacOS | 1.16 | amd64 | | MacOS | 1.15 | amd64 | -| MacOS | 1.14 | amd64 | +| Windows | 1.16 | amd64 | | Windows | 1.15 | amd64 | -| Windows | 1.14 | amd64 | +| Windows | 1.16 | 386 | | Windows | 1.15 | 386 | -| Windows | 1.14 | 386 | While this project should work for other systems, no compatibility guarantees are made for those systems currently. diff --git a/bridge/opencensus/go.mod b/bridge/opencensus/go.mod index 1e37099db69..7a89e5fac84 100644 --- a/bridge/opencensus/go.mod +++ b/bridge/opencensus/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/bridge/opencensus -go 1.14 +go 1.15 require ( go.opencensus.io v0.22.6-0.20201102222123-380f4078db9f diff --git a/bridge/opentracing/go.mod b/bridge/opentracing/go.mod index 87e20b0877b..218df8b7da2 100644 --- a/bridge/opentracing/go.mod +++ b/bridge/opentracing/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/bridge/opentracing -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../.. diff --git a/example/jaeger/go.mod b/example/jaeger/go.mod index 14a00892744..c246f2898dc 100644 --- a/example/jaeger/go.mod +++ b/example/jaeger/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/jaeger -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/example/namedtracer/go.mod b/example/namedtracer/go.mod index c8d3955e345..6a57f10219f 100644 --- a/example/namedtracer/go.mod +++ b/example/namedtracer/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/namedtracer -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/example/opencensus/go.mod b/example/opencensus/go.mod index 62a42e2c0f4..3106c5c80ab 100644 --- a/example/opencensus/go.mod +++ b/example/opencensus/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/opencensus -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/example/otel-collector/go.mod b/example/otel-collector/go.mod index 22d24859dd5..f922d7be508 100644 --- a/example/otel-collector/go.mod +++ b/example/otel-collector/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/otel-collector -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/example/prom-collector/go.mod b/example/prom-collector/go.mod index 60cf1299ea3..75014b13ad0 100644 --- a/example/prom-collector/go.mod +++ b/example/prom-collector/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/prom-collector -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/example/prometheus/go.mod b/example/prometheus/go.mod index a00bd1f7ac6..eb1c30c16ef 100644 --- a/example/prometheus/go.mod +++ b/example/prometheus/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/prometheus -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/example/zipkin/Dockerfile b/example/zipkin/Dockerfile index 46421442b91..e269b63c56c 100644 --- a/example/zipkin/Dockerfile +++ b/example/zipkin/Dockerfile @@ -11,7 +11,7 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -FROM golang:1.14-alpine +FROM golang:1.16-alpine COPY . /go/src/github.com/open-telemetry/opentelemetry-go/ WORKDIR /go/src/github.com/open-telemetry/opentelemetry-go/example/zipkin/ RUN go install ./main.go diff --git a/example/zipkin/go.mod b/example/zipkin/go.mod index d0e3ab7fd83..465f57b39c8 100644 --- a/example/zipkin/go.mod +++ b/example/zipkin/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/example/zipkin -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/exporters/metric/prometheus/go.mod b/exporters/metric/prometheus/go.mod index 6089d4fdf1c..f060b7f7447 100644 --- a/exporters/metric/prometheus/go.mod +++ b/exporters/metric/prometheus/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/exporters/metric/prometheus -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../../.. diff --git a/exporters/otlp/go.mod b/exporters/otlp/go.mod index 70e9232c7cb..5bbe3a9ea1f 100644 --- a/exporters/otlp/go.mod +++ b/exporters/otlp/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/exporters/otlp -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/exporters/stdout/go.mod b/exporters/stdout/go.mod index a572a95c437..95f5b5d991a 100644 --- a/exporters/stdout/go.mod +++ b/exporters/stdout/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/exporters/stdout -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../.. diff --git a/exporters/trace/jaeger/go.mod b/exporters/trace/jaeger/go.mod index 336202e8d07..85ad454d459 100644 --- a/exporters/trace/jaeger/go.mod +++ b/exporters/trace/jaeger/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/exporters/trace/jaeger -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../../.. diff --git a/exporters/trace/zipkin/go.mod b/exporters/trace/zipkin/go.mod index 7c9fc8c72d1..5dda102acb1 100644 --- a/exporters/trace/zipkin/go.mod +++ b/exporters/trace/zipkin/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/exporters/trace/zipkin -go 1.14 +go 1.15 replace ( go.opentelemetry.io/otel => ../../.. diff --git a/go.mod b/go.mod index a0e9267ad36..3dc07a76b4e 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel -go 1.14 +go 1.15 require ( github.com/google/go-cmp v0.5.5 diff --git a/internal/tools/go.mod b/internal/tools/go.mod index fbd80abe01e..05024bea55c 100644 --- a/internal/tools/go.mod +++ b/internal/tools/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/internal/tools -go 1.14 +go 1.15 require ( github.com/client9/misspell v0.3.4 diff --git a/metric/go.mod b/metric/go.mod index 47bc47badde..c95f3e4fe02 100644 --- a/metric/go.mod +++ b/metric/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/metric -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../ diff --git a/oteltest/go.mod b/oteltest/go.mod index 07b7ddf270a..f13318dcda0 100644 --- a/oteltest/go.mod +++ b/oteltest/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/oteltest -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../ diff --git a/sdk/export/metric/go.mod b/sdk/export/metric/go.mod index 170d38157fa..41b9c4dc1a2 100644 --- a/sdk/export/metric/go.mod +++ b/sdk/export/metric/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/sdk/export/metric -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../../.. diff --git a/sdk/go.mod b/sdk/go.mod index 8b516740d1f..7b7b04465aa 100644 --- a/sdk/go.mod +++ b/sdk/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/sdk -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../ diff --git a/sdk/metric/go.mod b/sdk/metric/go.mod index 6ad529662cf..676e4af0c7b 100644 --- a/sdk/metric/go.mod +++ b/sdk/metric/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/sdk/metric -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../.. diff --git a/trace/go.mod b/trace/go.mod index 914e4f4384a..dbb43bdfb62 100644 --- a/trace/go.mod +++ b/trace/go.mod @@ -1,6 +1,6 @@ module go.opentelemetry.io/otel/trace -go 1.14 +go 1.15 replace go.opentelemetry.io/otel => ../ diff --git a/website_docs/getting-started.md b/website_docs/getting-started.md index 46f1878cdd6..33285ea642c 100644 --- a/website_docs/getting-started.md +++ b/website_docs/getting-started.md @@ -7,7 +7,7 @@ Welcome to the OpenTelemetry for Go getting started guide! This guide will walk # Installation -OpenTelemetry packages for Go are available in the `go.opentelemetry.io/otel` namespace. You will need to add references to them in the `import` statement. We suggest using Go 1.14 or newer, for module support. +OpenTelemetry packages for Go are available in the `go.opentelemetry.io/otel` namespace. You will need to add references to them in the `import` statement. We suggest using Go 1.15 or newer, for module support. To get started with this guide, create a new directory and add a new file named `main.go` to it. In your terminal, run the command `go mod init main` in the same directory. This will create a `go.mod` file, which is used by Go to manage imports.